refactoring. combine 2 if to 1
This commit is contained in:
parent
b1d1869f22
commit
9acda09fa2
|
@ -215,12 +215,10 @@ unsigned int CppCheck::processFile(const std::string& filename, std::istream& fi
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// dump xml if --dump
|
// dump xml if --dump
|
||||||
if (_settings.dump) {
|
if (_settings.dump && fdump.is_open()) {
|
||||||
if (fdump.is_open()) {
|
fdump << "<dump cfg=\"" << cfg << "\">" << std::endl;
|
||||||
fdump << "<dump cfg=\"" << cfg << "\">" << std::endl;
|
_tokenizer.dump(fdump);
|
||||||
_tokenizer.dump(fdump);
|
fdump << "</dump>" << std::endl;
|
||||||
fdump << "</dump>" << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip if we already met the same simplified token list
|
// Skip if we already met the same simplified token list
|
||||||
|
|
Loading…
Reference in New Issue