Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
(require | disallow)NewlineBeforeBlockStatements: remove needless guards
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Jan 8, 2015
1 parent 14e1232 commit 6da56c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/rules/disallow-newline-before-block-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions lib/rules/require-newline-before-block-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6da56c1

Please sign in to comment.