Remove redundant comparison

This commit is contained in:
Reijo Tomperi 2009-09-27 17:53:09 +03:00
parent 07f41f4563
commit 9df2b84233
1 changed files with 4 additions and 7 deletions

View File

@ -181,14 +181,11 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[])
else if (strcmp(argv[i], "--template") == 0)
{
// "--template path/"
if (strcmp(argv[i], "--template") == 0)
{
++i;
if (i >= argc)
return "cppcheck: argument to '--template' is missing\n";
++i;
if (i >= argc)
return "cppcheck: argument to '--template' is missing\n";
_settings._outputFormat = argv[i];
}
_settings._outputFormat = argv[i];
}
// Include paths