Stop multiple error messages in lint results

Have fixed a minor error in the lint action that was causing Error
messages from linting chart getting added to the returned results
multiple times.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
pull/6296/head
Thomas O'Donnell 5 years ago
parent 8f3fd753ad
commit e5668f54fe

@ -73,7 +73,6 @@ func (l *Lint) Run(paths []string, vals map[string]interface{}) *LintResult {
for _, msg := range linter.Messages {
if msg.Severity == support.ErrorSev {
result.Errors = append(result.Errors, msg.Err)
result.Messages = append(result.Messages, msg)
}
}
}

Loading…
Cancel
Save