Skip to content
Permalink
Browse files

Chore: remove incorrect comment (#11769)

  • Loading branch information...
aladdin-add committed May 27, 2019
1 parent 4039a49 commit 8eaa9b259dc08dfb48269b1e4413d0d47698ed87
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/linter/linter.js
@@ -929,13 +929,11 @@ function getEnv(slots, envId) {
* Get a rule.
* @param {LinterInternalSlots} slots The internal slots of Linter.
* @param {string} ruleId The rule ID to get.
* @returns {Rule} The rule.
* @returns {Rule|null} The rule.
*/
function getRule(slots, ruleId) {
return (
(slots.lastConfigArray && slots.lastConfigArray.pluginRules.get(ruleId)) ||

// This returns the stub for missing rules if the rule does not exist.
slots.ruleMap.get(ruleId)
);
}

0 comments on commit 8eaa9b2

Please sign in to comment.
You can’t perform that action at this time.