Skip to content

Commit

Permalink
Chore: remove incorrect comment (#11769)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed May 27, 2019
1 parent 4039a49 commit 8eaa9b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/linter/linter.js
Expand Up @@ -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)
);
}
Expand Down

0 comments on commit 8eaa9b2

Please sign in to comment.