Make linter happy

This commit is contained in:
Benedikt Kulmann committed 2020-08-28 17:03:43 +02:00
1 parent 311502bede
commit 4ee0c269f6
1 file changed
+2 -2
+2 -2
View File
@@ -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,
}
}