mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-19 07:31:33 +00:00
lint
This commit is contained in:
parent
d5c40ce7d2
commit
8e8730d017
@ -84,13 +84,15 @@ func (q *Queries) SearchMilestones(ctx context.Context, instanceIDs []string, qu
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer func() {
|
||||
if err = rows.Close(); err != nil {
|
||||
err = errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
||||
}
|
||||
}()
|
||||
milestones, err := scan(rows)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = rows.Close(); err != nil {
|
||||
return nil, errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
||||
}
|
||||
if err = rows.Err(); err != nil {
|
||||
return nil, errors.ThrowInternal(err, "QUERY-asLsI", "Errors.Internal")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user