Skip to content

Commit

Permalink
Removed extra blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gscshoyru committed Dec 5, 2013
1 parent 290092f commit b144497
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rules/noConsecutiveBlankLinesRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ export class Rule extends Lint.Rules.AbstractRule {
}

class BlankLinesWalker extends Lint.RuleWalker {

// starting with 1 to cover the case where the file starts with two blank lines
private newLinesInARowSeenSoFar = 1;

public visitToken(token: TypeScript.ISyntaxToken): void {

this.findConsecutiveBlankLinesFromTriva(token.leadingTrivia().toArray(), this.position());
this.newLinesInARowSeenSoFar = 0;
this.findConsecutiveBlankLinesFromTriva(token.trailingTrivia().toArray(),
Expand Down

0 comments on commit b144497

Please sign in to comment.