Merge pull request #6296 from andytom/fix/duplicate_error_msgs

Stop multiple error messages in lint results
pull/6362/head
Taylor Thomas 6 years ago committed by GitHub
commit 01e562bd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save