Skip to content

Commit 91a5741

Browse files
committed
linting
1 parent 85d1fde commit 91a5741

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

coderd/externalauth/externalauth.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ func (e InvalidTokenError) Error() string {
105105

106106
func IsInvalidTokenError(err error) bool {
107107
var invalidTokenError InvalidTokenError
108-
if xerrors.As(err, &invalidTokenError) {
109-
return true
110-
}
111-
return false
108+
return xerrors.As(err, &invalidTokenError)
112109
}
113110

114111
// RefreshToken automatically refreshes the token if expired and permitted.

0 commit comments

Comments
 (0)