Skip to content

Commit 69cde4d

Browse files
committed
fix formatting
1 parent 553b43a commit 69cde4d

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

cmd/admin_auth_ldap.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ func newMicrocmdAuthAddLdapSimpleAuth() *cli.Command {
140140
&cli.StringFlag{Name: "public-ssh-key-attribute", Usage: "The attribute of the user’s LDAP record containing the user’s public ssh key."},
141141
&cli.BoolFlag{Name: "skip-local-2fa", Usage: "Set to true to skip local 2fa for users authenticated by this source"},
142142
&cli.StringFlag{Name: "avatar-attribute", Usage: "The attribute of the user’s LDAP record containing the user’s avatar."},
143-
&cli.StringFlag{Name: "user-dn", Usage: "The user's DN.", Required: true}},
143+
&cli.StringFlag{Name: "user-dn", Usage: "The user's DN.", Required: true},
144+
},
144145
}
145146
}
146147

@@ -173,7 +174,8 @@ func newMicrocmdAuthUpdateLdapSimpleAuth() *cli.Command {
173174
&cli.BoolFlag{Name: "skip-local-2fa", Usage: "Set to true to skip local 2fa for users authenticated by this source"},
174175
&cli.StringFlag{Name: "avatar-attribute", Usage: "The attribute of the user’s LDAP record containing the user’s avatar."},
175176
&cli.StringFlag{Name: "user-dn", Usage: "The user's DN."},
176-
}}
177+
},
178+
}
177179
}
178180

179181
// newAuthService creates a service with default functions.

cmd/admin_auth_smtp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func microcmdAuthUpdateSMTP() *cli.Command {
8686
}}, smtpCLIFlags()[1:]...)...),
8787
}
8888
}
89+
8990
func microcmdAuthAddSMTP() *cli.Command {
9091
return &cli.Command{
9192
Name: "add-smtp",

cmd/admin_auth_smtp_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ func TestUpdateSMTP(t *testing.T) {
258258
},
259259
TwoFactorPolicy: "skip",
260260
}, nil
261-
262261
},
263262

264263
updateAuthSource: func(ctx context.Context, source *auth_model.Source) error {

cmd/admin_user_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func microcmdUserCreate() *cli.Command {
2727
MutuallyExclusiveFlags: []cli.MutuallyExclusiveFlags{
2828
{
2929
Flags: [][]cli.Flag{
30-
[]cli.Flag{
30+
{
3131
&cli.StringFlag{
3232
Name: "name",
3333
Usage: "Username. DEPRECATED: use username instead",

cmd/admin_user_create_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
)
1919

2020
func TestAdminUserCreate(t *testing.T) {
21-
2221
reset := func() {
2322
require.NoError(t, db.TruncateBeans(db.DefaultContext, &user_model.User{}))
2423
require.NoError(t, db.TruncateBeans(db.DefaultContext, &user_model.EmailAddress{}))

0 commit comments

Comments
 (0)