Skip to content

Commit

Permalink
directly release the mutex, no need for defer
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Dec 18, 2024
1 parent 7367e0b commit 77b3f1a
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 @@ -57,7 +57,7 @@ func (o *Client) GetApiToken() string {
func (o *Client) SetApiToken(in string) {
o.lock(mutexKeyHttpHeaders)
o.httpHeaders[apstraAuthHeader] = in
defer o.unlock(mutexKeyHttpHeaders)
o.unlock(mutexKeyHttpHeaders)
}

func (o *Client) login(ctx context.Context) error {
Expand Down

0 comments on commit 77b3f1a

Please sign in to comment.