Skip to content

Commit

Permalink
fix: lint (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbrzzl authored Sep 2, 2024
1 parent 1ba0774 commit 7e40ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion support/docker/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func run(command string) (string, error) {
cmd.Stderr = &stderr

if err := cmd.Run(); err != nil {
return "", fmt.Errorf(fmt.Sprint(err) + ": " + stderr.String())
return "", fmt.Errorf("%s: %s", err, stderr.String())
}

return out.String(), nil
Expand Down
2 changes: 1 addition & 1 deletion validation/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (v *Validator) Bind(ptr any) error {
}

func (v *Validator) Errors() httpvalidate.Errors {
if v.instance.Errors == nil || len(v.instance.Errors) == 0 {
if len(v.instance.Errors) == 0 {
return nil
}

Expand Down

0 comments on commit 7e40ecf

Please sign in to comment.