Skip to content

Commit

Permalink
refactor: 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 29cb44d commit 575dbd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/minisign/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ func (e *ExecutorImpl) Verify(ctx context.Context, logE *logrus.Entry, param *Pa
signature,
}
for i := range 5 {
if err := e.exec(ctx, args); err == nil {
err := e.exec(ctx, args)
if err == nil {
return nil
} else {
logerr.WithError(logE, err).WithFields(logrus.Fields{
"exe": e.minisignExePath,
"args": strings.Join(args, " "),
}).Warn("execute minisign")
}
logerr.WithError(logE, err).WithFields(logrus.Fields{
"exe": e.minisignExePath,
"args": strings.Join(args, " "),
}).Warn("execute minisign")
if i == 4 { //nolint:mnd
break
}
Expand Down

0 comments on commit 575dbd0

Please sign in to comment.