From 3741ebcf34f1b02e34dbd15b55c52e71f8348795 Mon Sep 17 00:00:00 2001 From: yeonjuan Date: Fri, 13 Dec 2019 02:20:31 +0900 Subject: [PATCH] Chore: remove unused code in max-lines-per-function --- lib/rules/max-lines-per-function.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/rules/max-lines-per-function.js b/lib/rules/max-lines-per-function.js index 0cfc1f8da9e..03539fae470 100644 --- a/lib/rules/max-lines-per-function.js +++ b/lib/rules/max-lines-per-function.js @@ -54,9 +54,6 @@ const OPTIONS_OR_INTEGER_SCHEMA = { function getCommentLineNumbers(comments) { const map = new Map(); - if (!comments) { - return map; - } comments.forEach(comment => { for (let i = comment.loc.start.line; i <= comment.loc.end.line; i++) { map.set(i, comment);