mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 10:01:40 +00:00
lint
This commit is contained in:
parent
ecdb5d4012
commit
d5c40ce7d2
@ -3,7 +3,6 @@ package integration
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/zitadel/zitadel/pkg/grpc/system"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -21,6 +20,7 @@ import (
|
|||||||
mgmt "github.com/zitadel/zitadel/pkg/grpc/management"
|
mgmt "github.com/zitadel/zitadel/pkg/grpc/management"
|
||||||
object "github.com/zitadel/zitadel/pkg/grpc/object/v2alpha"
|
object "github.com/zitadel/zitadel/pkg/grpc/object/v2alpha"
|
||||||
session "github.com/zitadel/zitadel/pkg/grpc/session/v2alpha"
|
session "github.com/zitadel/zitadel/pkg/grpc/session/v2alpha"
|
||||||
|
"github.com/zitadel/zitadel/pkg/grpc/system"
|
||||||
user "github.com/zitadel/zitadel/pkg/grpc/user/v2alpha"
|
user "github.com/zitadel/zitadel/pkg/grpc/user/v2alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -88,7 +88,10 @@ func (q *Queries) SearchMilestones(ctx context.Context, instanceIDs []string, qu
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if err := rows.Err(); err != nil {
|
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")
|
return nil, errors.ThrowInternal(err, "QUERY-asLsI", "Errors.Internal")
|
||||||
}
|
}
|
||||||
milestones.LatestSequence, err = q.latestSequence(ctx, milestonesTable)
|
milestones.LatestSequence, err = q.latestSequence(ctx, milestonesTable)
|
||||||
@ -131,9 +134,6 @@ func prepareMilestonesQuery(ctx context.Context, db prepareDatabase) (sq.SelectB
|
|||||||
m.PushedDate = pushedDate.Time
|
m.PushedDate = pushedDate.Time
|
||||||
milestones = append(milestones, m)
|
milestones = append(milestones, m)
|
||||||
}
|
}
|
||||||
if err := rows.Close(); err != nil {
|
|
||||||
return nil, errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
|
||||||
}
|
|
||||||
return &Milestones{
|
return &Milestones{
|
||||||
Milestones: milestones,
|
Milestones: milestones,
|
||||||
SearchResponse: SearchResponse{
|
SearchResponse: SearchResponse{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user