Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ali <[email protected]>
  • Loading branch information
aali309 committed Jan 3, 2025
1 parent d4b6a5c commit c6f8115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/rbac/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (e *Enforcer) EnforceErr(rvals ...any) error {
Subject: jwtutil.StringField(claims, "sub"),
},
}); utils.GetUserIdentifier(argoClaims) != "" {
rvalsStrs = append(rvalsStrs, fmt.Sprintf("sub: %s", utils.GetUserIdentifier(argoClaims)))
rvalsStrs = append(rvalsStrs, "sub: "+utils.GetUserIdentifier(argoClaims))
}
if issuedAtTime, err := jwtutil.IssuedAtTime(claims); err == nil {
rvalsStrs = append(rvalsStrs, "iat: "+issuedAtTime.Format(time.RFC3339))
Expand Down

0 comments on commit c6f8115

Please sign in to comment.