FirstIDX is like FirstID, but panics if an error occurs.
(ctx context.Context)
| 124 | |
| 125 | // FirstIDX is like FirstID, but panics if an error occurs. |
| 126 | func (gcq *GitCommitQuery) FirstIDX(ctx context.Context) uuid.UUID { |
| 127 | id, err := gcq.FirstID(ctx) |
| 128 | if err != nil && !IsNotFound(err) { |
| 129 | panic(err) |
| 130 | } |
| 131 | return id |
| 132 | } |
| 133 | |
| 134 | // Only returns a single GitCommit entity found by the query, ensuring it only returns one. |
| 135 | // Returns a *NotSingularError when more than one GitCommit entity is found. |
nothing calls this directly
no test coverage detected