Skip to content

Commit 57ab641

Browse files
committed
fix: fix variable shadowing
1 parent ec546b1 commit 57ab641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/dbusers/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ func (opts *CreateOpts) initStore(ctx context.Context) func() error {
9595
}
9696

9797
func (opts *CreateOpts) Run() error {
98-
user := opts.newDatabaseUser()
98+
u := opts.newDatabaseUser()
9999

100-
r, err := opts.store.CreateDatabaseUser(user)
100+
r, err := opts.store.CreateDatabaseUser(u)
101101
if err != nil {
102102
return err
103103
}

0 commit comments

Comments
 (0)