Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
notque committed Mar 21, 2024
1 parent 463d8ba commit 7241ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/token.go
Expand Up @@ -54,7 +54,7 @@ func (p *v1Provider) CheckToken(r *http.Request) *Token {
t.context, t.err = p.keystone.ValidateToken(str)
if t.err != nil {
logg.Debug("Error connection to identity server %s", t.err)
if _, ok := errext.As[gophercloud.ErrDefault404](t.err); ok { // nolint: errcheck // type checking
if _, ok := errext.As[gophercloud.ErrDefault404](t.err); ok { //nolint: errcheck // type checking
t.err = errors.New("X-Auth-Token is invalid or expired")
}
}
Expand Down

0 comments on commit 7241ea5

Please sign in to comment.