Skip to content

Commit

Permalink
Redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 7, 2023
1 parent 62e0e5d commit c94a4a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3881,12 +3881,9 @@ void SymbolDatabase::printOut(const char *title) const
}
std::cout << " retType: " << func->retType << std::endl;

if (func->tokenDef->next()->valueType()) {
const ValueType * valueType = func->tokenDef->next()->valueType();
if (const ValueType* valueType = func->tokenDef->next()->valueType()) {
std::cout << " valueType: " << valueType << std::endl;
if (valueType) {
std::cout << " " << valueType->str() << std::endl;
}
std::cout << " " << valueType->str() << std::endl;
}

if (func->hasBody()) {
Expand Down

0 comments on commit c94a4a2

Please sign in to comment.