Remove duplicate return statements.
This commit is contained in:
parent
5cc2e247bb
commit
443e846b2e
|
@ -1393,9 +1393,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings)
|
||||||
typeToken = typeToken->next();
|
typeToken = typeToken->next();
|
||||||
functionInfo = function;
|
functionInfo = function;
|
||||||
element = true;
|
element = true;
|
||||||
return;
|
}
|
||||||
} else
|
return;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (tok1->previous()->str() == ")" && tok1->linkAt(-1)->previous()->type() == Token::eFunction) {
|
} else if (tok1->previous()->str() == ")" && tok1->linkAt(-1)->previous()->type() == Token::eFunction) {
|
||||||
const Function * function = tok1->linkAt(-1)->previous()->function();
|
const Function * function = tok1->linkAt(-1)->previous()->function();
|
||||||
|
@ -1405,9 +1404,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings)
|
||||||
typeToken = typeToken->next();
|
typeToken = typeToken->next();
|
||||||
functionInfo = function;
|
functionInfo = function;
|
||||||
element = false;
|
element = false;
|
||||||
return;
|
}
|
||||||
} else
|
return;
|
||||||
return;
|
|
||||||
} else
|
} else
|
||||||
varTok = tok1->previous();
|
varTok = tok1->previous();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue