Skip to content

Commit

Permalink
fix: missing defer
Browse files Browse the repository at this point in the history
Co-authored-by: FUJIWARA Shunichiro <[email protected]>
  • Loading branch information
handlename and fujiwara authored May 20, 2024
1 parent 81184fd commit 1409554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (r *Router) s3Client(ctx context.Context, bucket string) (*s3.Client, error
}

r.s3Lock.Lock()
r.s3Lock.Unlock()
defer r.s3Lock.Unlock()

if s3, ok := r.s3[bucketRegion]; ok {
return s3, nil
Expand Down

0 comments on commit 1409554

Please sign in to comment.