Skip to content

Commit

Permalink
remove unneeded null check
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermooo committed Nov 17, 2015
1 parent 04a6dc3 commit 46b81a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cmd_line/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ module LexerFunctions {
// The first digit has already been lexed.
while (true) {
if (state.isAtEof) {
var emitted = emitToken(TokenType.LineNumber, state);
if (emitted) {
tokens.push(emitted);
};
tokens.push(emitToken(TokenType.LineNumber, state));
return null;
}
var c = state.next();
Expand Down

0 comments on commit 46b81a2

Please sign in to comment.