cmFindPackageCommand: Simplify if-return-else-return into single return stmt

This commit is contained in:
Alex Turbov
2022-06-27 06:39:43 +04:00
parent a3fe1aca0c
commit f2a4e4f6fa

View File

@@ -2176,13 +2176,7 @@ public:
}
return *this;
}
bool Search()
{
if (this->First) {
return this->First->Search(*this);
}
return false;
}
bool Search() { return this->First && this->First->Search(*this); }
private:
virtual bool Visit(std::string const& fullPath) = 0;