Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chore: fix incorrect comment about linter.verify return value (#10030)
  • Loading branch information
not-an-aardvark committed Feb 27, 2018
1 parent 9df8653 commit 3c697de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/linter.js
Expand Up @@ -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 || {};
Expand Down Expand Up @@ -1036,7 +1036,7 @@ module.exports = class Linter {
* @param {function(Array<Object[]>): 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]);
Expand Down

0 comments on commit 3c697de

Please sign in to comment.