Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Dec 18, 2024
1 parent 78dffbf commit 7367e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apstra/api_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (o *Client) logout(ctx context.Context) error {
}()

o.lock(mutexKeyHttpHeaders)
if token := o.httpHeaders[apstraAuthHeader]; token == "" {
if token := o.httpHeaders[apstraAuthHeader]; token == "" { // doesn't exist OR is empty string?
o.unlock(mutexKeyHttpHeaders)
return nil // don't need to call the logout API if we have no token
}
Expand Down

0 comments on commit 7367e0b

Please sign in to comment.