From 8eaa9b259dc08dfb48269b1e4413d0d47698ed87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Mon, 27 May 2019 11:46:03 +0800 Subject: [PATCH] Chore: remove incorrect comment (#11769) --- lib/linter/linter.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/linter/linter.js b/lib/linter/linter.js index c97822f269c..63247069746 100644 --- a/lib/linter/linter.js +++ b/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) ); }