From 3c697de6182b19d49b910a33b1bc6b0a0e2569b3 Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Tue, 27 Feb 2018 16:50:57 -0500 Subject: [PATCH] Chore: fix incorrect comment about linter.verify return value (#10030) --- lib/linter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linter.js b/lib/linter.js index 66f4bc35720..ae8706d1264 100644 --- a/lib/linter.js +++ b/lib/linter.js @@ -918,7 +918,7 @@ module.exports = class Linter { * Useful if you want to validate JS without comments overriding rules. * @param {boolean} [filenameOrOptions.reportUnusedDisableDirectives=false] Adds reported errors for unused * eslint-disable directives - * @returns {Object[]} The results as an array of messages or null if no messages. + * @returns {Object[]} The results as an array of messages or an empty array if no messages. */ _verifyWithoutProcessors(textOrSourceCode, providedConfig, filenameOrOptions) { const config = providedConfig || {}; @@ -1036,7 +1036,7 @@ module.exports = class Linter { * @param {function(Array): Object[]} [filenameOrOptions.postprocess] postprocessor for report messages. If provided, * this should accept an array of the message lists for each code block returned from the preprocessor, * apply a mapping to the messages as appropriate, and return a one-dimensional array of messages - * @returns {Object[]} The results as an array of messages or null if no messages. + * @returns {Object[]} The results as an array of messages or an empty array if no messages. */ verify(textOrSourceCode, config, filenameOrOptions) { const preprocess = filenameOrOptions && filenameOrOptions.preprocess || (rawText => [rawText]);