Skip to content

Commit

Permalink
fix: fix a lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Sep 22, 2024
1 parent 79da05c commit c68977b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minisign/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (v *Verifier) downloadSignature(ctx context.Context, logE *logrus.Entry, rt
if err != nil {
return "", fmt.Errorf("create a temporary file: %w", err)
}
defer signatureFile.Close() //nolint:errcheck
defer signatureFile.Close()
if _, err := io.Copy(signatureFile, rc); err != nil {
return signatureFile.Name(), fmt.Errorf("copy a signature to a temporary file: %w", err)
}
Expand Down

0 comments on commit c68977b

Please sign in to comment.