Skip to content

Commit

Permalink
fix IneffAssign
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillezi committed Sep 17, 2024
1 parent 9c87904 commit 1b37942
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/v1/auth/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func New(token token.JWTToken) *Session {
}
sub, ok := data["sub"].(string)
if !ok {
id = nil
logrus.Warn("JWT 'sub' claim is not a string")
}
id = &sub
Expand Down Expand Up @@ -89,7 +88,6 @@ func Load(filepath string) (*Session, error) {
}
sub, ok := data["sub"].(string)
if !ok {
id = nil
logrus.Warn("JWT 'sub' claim is not a string")
}
id = &sub
Expand Down

0 comments on commit 1b37942

Please sign in to comment.