Skip to content

Commit

Permalink
fix(lint): removed redundant zero in var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Aug 28, 2024
1 parent 10d906f commit 8abc370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dashboard/business/ac/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func PatchAccount(ctx context.Context, username string, param *acmodel.PatchAcco
accountChanged = true
}
if accountChanged {
var lastLoginUnix int64 = 0
var lastLoginUnix int64
if acc.LastLoginAt != nil {
lastLoginUnix = acc.LastLoginAt.Unix()
}
Expand Down

0 comments on commit 8abc370

Please sign in to comment.