fix: error shadowing

pull/5286/head
Henrique Dias 2025-07-22 08:23:45 +02:00
parent 69d121e66a
commit 094a03612f
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ func runRules(st *storage.Storage, cmd *cobra.Command, usersFn func(*users.User)
return err
}
if id != nil {
user, err := st.Users.Get("", id)
var user *users.User
user, err = st.Users.Get("", id)
if err != nil {
return err
}