Remove redundant comparison
This commit is contained in:
parent
07f41f4563
commit
9df2b84233
|
@ -181,15 +181,12 @@ 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";
|
||||
|
||||
_settings._outputFormat = argv[i];
|
||||
}
|
||||
}
|
||||
|
||||
// Include paths
|
||||
else if (strcmp(argv[i], "-j") == 0 ||
|
||||
|
|
Loading…
Reference in New Issue