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 committed Nov 7, 2024
1 parent d67e8b0 commit ec10894
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 ec10894

Please sign in to comment.