From 443e846b2e227ddeb11edfdf7d655c91accd8f88 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 18 Aug 2014 16:02:35 +0400 Subject: [PATCH] Remove duplicate return statements. --- lib/checkio.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 4b945cc86..4d881457e 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -1393,9 +1393,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings) typeToken = typeToken->next(); functionInfo = function; element = true; - return; - } else - return; + } + return; } } else if (tok1->previous()->str() == ")" && tok1->linkAt(-1)->previous()->type() == Token::eFunction) { const Function * function = tok1->linkAt(-1)->previous()->function(); @@ -1405,9 +1404,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings) typeToken = typeToken->next(); functionInfo = function; element = false; - return; - } else - return; + } + return; } else varTok = tok1->previous(); break;