Fix issue detected by Coverity (ternary operator false expression is unreachable)
This commit is contained in:
parent
a024f339dd
commit
cdeae918a8
|
@ -1103,7 +1103,7 @@ static Token * createAstAtToken(Token *tok, bool cpp)
|
|||
|
||||
createAstAtTokenInner(tok1->next(), endToken, cpp);
|
||||
|
||||
return endToken ? endToken->previous() : nullptr;
|
||||
return endToken->previous();
|
||||
}
|
||||
|
||||
return tok;
|
||||
|
|
Loading…
Reference in New Issue