Skip to content

Commit

Permalink
fix: applying suggestions to use errors New
Browse files Browse the repository at this point in the history
  • Loading branch information
rchojn authored and rchojn committed Nov 8, 2024
1 parent 1a16f70 commit 7a3922d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/recipe/sauce.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package recipe

import (
"errors"
"fmt"
"path/filepath"
"strings"
Expand Down Expand Up @@ -172,7 +173,7 @@ func (s *Sauce) RenderInitHelp() (string, error) {
output := buf.String()

if strings.Contains(output, "<no value>") {
return "", fmt.Errorf("some of the variables used in the initHelp template were undefined")
return "", errors.New("some of the variables used in the initHelp template were undefined")
}

return output, nil
Expand Down

0 comments on commit 7a3922d

Please sign in to comment.