Refactoring: After conditional return the 'else' is not needed
This commit is contained in:
parent
6d86ad78ba
commit
e3a4ef795e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue