Skip to content

Commit

Permalink
chore(linter): fix linter errors, remove deprecated allow leading spa…
Browse files Browse the repository at this point in the history
…ces (#61)
  • Loading branch information
KellyMerrick authored Dec 13, 2023
1 parent cbbb4b9 commit e94dd43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ linters-settings:

# https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/nolintlint
nolintlint:
allow-leading-space: true # allow non-"machine-readable" format (ie. with leading space)
allow-unused: false # allow nolint directives that don't address a linting issue
require-explanation: true # require an explanation for nolint directives
require-specific: true # require nolint directives to be specific about which linter is being skipped
Expand Down
4 changes: 2 additions & 2 deletions pkg/binarywrapper/binarywrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (p *Plugin) Exec() error {
logrus.Error(errorBuffer.String())
}

return fmt.Errorf("%w: %s", ErrExec, err)
return fmt.Errorf("%w: %w", ErrExec, err)
}

if outBuffer.Len() > 0 {
Expand All @@ -181,7 +181,7 @@ func (p *Plugin) Exec() error {
if errors.Is(err, os.ErrNotExist) {
return fmt.Errorf("%w: %s", ErrMissingBinary, p.Binary())
}
return fmt.Errorf("%w: %s", ErrExec, err)
return fmt.Errorf("%w: %w", ErrExec, err)
}
} else {
return fmt.Errorf("%w: %d", ErrUnknownExecStyle, p.ExecStyle)
Expand Down

0 comments on commit e94dd43

Please sign in to comment.