Remove redundant comparison
This commit is contained in:
parent
07f41f4563
commit
9df2b84233
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue