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>
This commit is contained in:
Thomas O'Donnell
2019-08-27 19:14:26 +02:00
parent 8f3fd753ad
commit e5668f54fe

View File

@@ -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)
}
}
}