Skip to content
Browse files

JavaScript parser: Simplify parseJfFile() code (no functional changes)

  • Loading branch information...
1 parent 297bca3 commit 74890cc3080a87c95a19d28183a022a9219afcab @b4n b4n committed Sep 24, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 tagmanager/ctags/js.c
View
12 tagmanager/ctags/js.c
@@ -1569,18 +1569,10 @@ static void parseJsFile (tokenInfo *const token)
{
readToken (token);
- if (isType(token, TOKEN_KEYWORD))
- {
- switch (token->keyword)
- {
- case KEYWORD_function: parseFunction (token); break;
- default: parseLine (token, FALSE); break;
- }
- }
+ if (isType (token, TOKEN_KEYWORD) && token->keyword == KEYWORD_function)
+ parseFunction (token);
else
- {
parseLine (token, FALSE);
- }
} while (TRUE);
}

0 comments on commit 74890cc

Please sign in to comment.
Something went wrong with that request. Please try again.