mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 10:03:02 +08:00
Remove uneeded else branch. Fix variable hiding
This commit is contained in:
parent
86dc3107ca
commit
797c94caec
@ -393,15 +393,12 @@ namespace vcpkg
|
||||
{
|
||||
return vs_toolsets.back();
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto toolset = Util::find_if(vs_toolsets, [&](const Toolset& toolset) {
|
||||
return toolset_version == Strings::to_utf8(toolset.version);
|
||||
});
|
||||
Checks::check_exit(
|
||||
VCPKG_LINE_INFO, toolset != vs_toolsets.end(), "Could not find toolset '%s'", toolset_version);
|
||||
return *toolset;
|
||||
}
|
||||
|
||||
const auto toolset = Util::find_if(
|
||||
vs_toolsets, [&](const Toolset& t) { return toolset_version == Strings::to_utf8(t.version); });
|
||||
Checks::check_exit(
|
||||
VCPKG_LINE_INFO, toolset != vs_toolsets.end(), "Could not find toolset '%s'", toolset_version);
|
||||
return *toolset;
|
||||
}
|
||||
|
||||
Files::Filesystem& VcpkgPaths::get_filesystem() const { return Files::get_real_filesystem(); }
|
||||
|
Loading…
Reference in New Issue
Block a user