Skip to content

Commit 8abc370

Browse files
committed
fix(lint): removed redundant zero in var declaration
1 parent 10d906f commit 8abc370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/dashboard/business/ac/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func PatchAccount(ctx context.Context, username string, param *acmodel.PatchAcco
247247
accountChanged = true
248248
}
249249
if accountChanged {
250-
var lastLoginUnix int64 = 0
250+
var lastLoginUnix int64
251251
if acc.LastLoginAt != nil {
252252
lastLoginUnix = acc.LastLoginAt.Unix()
253253
}

0 commit comments

Comments
 (0)