Skip to content

Commit

Permalink
bearer: close open jwt key files
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Feb 14, 2024
1 parent ee7f818 commit 7afd6db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions irc/jwt/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (j *JWTAuthTokenConfig) keyBytes() (result []byte, err error) {
if err != nil {
return nil, err
}
defer o.Close()
return io.ReadAll(o)
}
if j.KeyString != "" {
Expand Down

0 comments on commit 7afd6db

Please sign in to comment.