diff --git a/lib/rules/disallow-newline-before-block-statements.js b/lib/rules/disallow-newline-before-block-statements.js index 9c4c545db..08b41a3a3 100644 --- a/lib/rules/disallow-newline-before-block-statements.js +++ b/lib/rules/disallow-newline-before-block-statements.js @@ -93,9 +93,6 @@ module.exports.prototype = { file.iterateNodesByType('BlockStatement', function(node) { var openingBrace = file.getFirstNodeToken(node); var prevToken = file.getPrevToken(openingBrace); - if (!prevToken) { - return; - } errors.assert.sameLine({ token: prevToken, diff --git a/lib/rules/require-newline-before-block-statements.js b/lib/rules/require-newline-before-block-statements.js index 6f2c71bab..0a64fea49 100644 --- a/lib/rules/require-newline-before-block-statements.js +++ b/lib/rules/require-newline-before-block-statements.js @@ -93,9 +93,6 @@ module.exports.prototype = { file.iterateNodesByType('BlockStatement', function(node) { var openingBrace = file.getFirstNodeToken(node); var prevToken = file.getPrevToken(openingBrace); - if (!prevToken) { - return; - } errors.assert.differentLine({ token: prevToken,