diff options
Diffstat (limited to 'tools/eslint/lib/formatters/tap.js')
-rw-r--r-- | tools/eslint/lib/formatters/tap.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/eslint/lib/formatters/tap.js b/tools/eslint/lib/formatters/tap.js index b9f4cd66b9a..ecb6960c375 100644 --- a/tools/eslint/lib/formatters/tap.js +++ b/tools/eslint/lib/formatters/tap.js @@ -66,11 +66,7 @@ module.exports = function(results) { // The first error will be logged as message key // This is to adhere to TAP 13 loosely defined specification of having a message key if ("message" in diagnostics) { - if ("messages" in diagnostics) { - diagnostics.messages.push(diagnostic); - } else { - diagnostics.messages = [diagnostic]; - } + diagnostics.messages = [diagnostic]; } else { diagnostics = diagnostic; } |