Refactoring: After conditional return the 'else' is not needed

This commit is contained in:
Daniel Marjamäki 2018-04-23 16:27:56 +02:00
parent 6d86ad78ba
commit e3a4ef795e
1 changed files with 3 additions and 1 deletions

View File

@ -3489,7 +3489,9 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
if (Token::Match(tok, "throw %any% (") &&
Token::simpleMatch(tok->linkAt(2), ") ;")) {
return tok->linkAt(2);
} else if ((Token::Match(tok, "throw %any% :: %any% (") &&
}
if ((Token::Match(tok, "throw %any% :: %any% (") &&
Token::simpleMatch(tok->linkAt(4), ") ;"))) {
return tok->linkAt(4);
}