mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -06:00
cmFindPackageCommand: Simplify if-return-else-return into single return stmt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user