mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
Remove redundant checks
This commit is contained in:
parent
daaa446f58
commit
8a062a688b
@ -205,8 +205,7 @@ bool TroubleshootCommand::ObjectInfo(InfoLog& log, const boost::program_options:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CheckObjectFile(objectfile, log, OFile, OConsole, logs, configs);
|
CheckObjectFile(objectfile, log, OFile, OConsole, logs, configs);
|
||||||
if (OFile != NULL)
|
delete OFile;
|
||||||
delete OFile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vm.count("include-vars")) {
|
if (vm.count("include-vars")) {
|
||||||
@ -497,7 +496,7 @@ void TroubleshootCommand::CheckObjectFile(const String& objectfile, InfoLog& log
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ObjectListUtility::PrintObject(sStream, first, message, type_count, "", "");
|
ObjectListUtility::PrintObject(sStream, first, message, type_count, "", "");
|
||||||
if(OFile != NULL) {
|
if (OFile) {
|
||||||
InfoLogLine(*OFile)
|
InfoLogLine(*OFile)
|
||||||
<< sStream.str();
|
<< sStream.str();
|
||||||
sStream.flush();
|
sStream.flush();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user