Skip to content

Commit

Permalink
fix: close file (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed May 23, 2024
2 parents 005fc75 + a12e018 commit f651bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/auth/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (s *FileStorage) Load(domain string) (client *Client, token *AccessToken, e
}
return nil, nil, err
}
defer f.Close()

data := &authData{}
if err = request.ReadJSON(f, data); err != nil {
Expand Down

0 comments on commit f651bed

Please sign in to comment.