Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
linting
  • Loading branch information
Emyrk committed May 31, 2024
commit 91a57417357f693287f73a031dc0759c8b56317c
5 changes: 1 addition & 4 deletions coderd/externalauth/externalauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ func (e InvalidTokenError) Error() string {

func IsInvalidTokenError(err error) bool {
var invalidTokenError InvalidTokenError
if xerrors.As(err, &invalidTokenError) {
return true
}
return false
return xerrors.As(err, &invalidTokenError)
}

// RefreshToken automatically refreshes the token if expired and permitted.
Expand Down