Apply suggestions from code review

Co-Authored-By: helgi <70530+helgi@users.noreply.github.com>
Signed-off-by: Helgi Þorbjörnsson <helgith@gmail.com>
pull/4748/head
Thomas O'Donnell 7 years ago committed by Helgi Þorbjörnsson
parent 1d1636d0da
commit e8dfb29dd8

@ -159,7 +159,7 @@ func (e *Engine) alterFuncMap(t *template.Template, referenceTpls map[string]ren
if e.LintMode { if e.LintMode {
// Don't fail on missing required values when linting // Don't fail on missing required values when linting
log.Printf("[INFO] Missing required value: %s", warn) log.Printf("[INFO] Missing required value: %s", warn)
return val, nil return "", nil
} }
// Convert nil to "" in case required is piped into other functions // Convert nil to "" in case required is piped into other functions
return "", fmt.Errorf(warn) return "", fmt.Errorf(warn)

Loading…
Cancel
Save