Skip to content

Commit 55f70e1

Browse files
committed
style: fix style-related lint issues.
Upstream dex has updated golangci-lint with new linters. Signed-off-by: Alastair Houghton <[email protected]>
1 parent d9b5e05 commit 55f70e1

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

middleware/claims/claims.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/dexidp/dex/connector"
1111
"github.com/dexidp/dex/middleware"
12-
1312
"github.com/dexidp/dex/pkg/log"
1413
)
1514

middleware/groups/groups.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
"github.com/dexidp/dex/connector"
1212
"github.com/dexidp/dex/middleware"
13-
1413
"github.com/dexidp/dex/pkg/log"
1514
)
1615

middleware/grpc/grpc.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ import (
1111
"runtime"
1212
"time"
1313

14+
"google.golang.org/grpc"
15+
"google.golang.org/grpc/credentials"
16+
1417
"github.com/dexidp/dex/connector"
1518
"github.com/dexidp/dex/middleware"
1619
"github.com/dexidp/dex/middleware/grpc/api"
17-
1820
"github.com/dexidp/dex/pkg/log"
19-
2021
"github.com/dexidp/dex/version"
21-
22-
"google.golang.org/grpc"
23-
"google.golang.org/grpc/credentials"
2422
)
2523

2624
// The current API version; if you update this, you will need to update the

storage/sql/crud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ func (c *conn) InsertMiddleware(ndx int, mware storage.Middleware) error {
11591159
`,
11601160
mware.Type, order, mware.ResourceVersion, mware.Config,
11611161
)
1162-
11631162
if err != nil {
11641163
return fmt.Errorf("insert middleware: %v", err)
11651164
}
@@ -1374,6 +1373,7 @@ func (c *conn) DeleteRefresh(id string) error { return c.delete("refresh_tok
13741373
func (c *conn) DeletePassword(email string) error {
13751374
return c.delete("password", "email", strings.ToLower(email))
13761375
}
1376+
13771377
func (c *conn) DeleteOfflineSessions(userID string, connID string) error {
13781378
result, err := c.Exec(`delete from offline_session where user_id = $1 AND conn_id = $2`, userID, connID)
13791379
if err != nil {

storage/sql/migrate.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ var migrations = []migration{
275275
},
276276
},
277277
{
278-
stmts: []string{`
278+
stmts: []string{
279+
`
279280
create table middleware (
280281
conn_id text not null,
281282
mw_order integer not null,
@@ -287,7 +288,8 @@ var migrations = []migration{
287288
},
288289
},
289290
{
290-
stmts: []string{`
291+
stmts: []string{
292+
`
291293
alter table auth_request
292294
add column claims_custom bytea;`,
293295
`

0 commit comments

Comments
 (0)