mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-24 15:19:25 -04:00
Make linter happy
This commit is contained in:
1 file changed
+2
-2
@@ -185,13 +185,13 @@ func AccountUUID(opts ...Option) func(next http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
// encode roleIDs as json string
|
||||
roleIDsJson, jsonErr := json.Marshal(roleIDs)
|
||||
roleIDsJSON, jsonErr := json.Marshal(roleIDs)
|
||||
if jsonErr != nil {
|
||||
l.Err(jsonErr).Str("accountID", account.Id).Msg("failed to marshal roleIDs into json")
|
||||
} else {
|
||||
user.Opaque.Map["roles"] = &types.OpaqueEntry{
|
||||
Decoder: "json",
|
||||
Value: roleIDsJson,
|
||||
Value: roleIDsJSON,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user