diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-28 18:03:43 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-28 19:54:00 -0700 |
| commit | 174c264b449dc77ab71ae07aa78673239ebd0c48 (patch) | |
| tree | a9fbab14d72c1e1c4af9f371357e8d187cd64ae8 /toolsrc/src | |
| parent | 63a9572ecfeccc143de6bc10a23c453823996dff (diff) | |
| download | vcpkg-174c264b449dc77ab71ae07aa78673239ebd0c48.tar.gz vcpkg-174c264b449dc77ab71ae07aa78673239ebd0c48.zip | |
[vcpkg_Dependencies.cpp] Remove redundant else
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg_Dependencies.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp index 279f5f870..2c619c3ac 100644 --- a/toolsrc/src/vcpkg_Dependencies.cpp +++ b/toolsrc/src/vcpkg_Dependencies.cpp @@ -193,17 +193,15 @@ namespace vcpkg::Dependencies { return this->spec.to_string(); } - else - { - std::string features; - for (auto&& feature : this->feature_list) - { - features += feature + ","; - } - features.pop_back(); - return this->spec.name() + "[" + features + "]:" + this->spec.triplet().to_string(); + std::string features; + for (auto&& feature : this->feature_list) + { + features += feature + ","; } + features.pop_back(); + + return this->spec.name() + "[" + features + "]:" + this->spec.triplet().to_string(); } bool InstallPlanAction::compare_by_name(const InstallPlanAction* left, const InstallPlanAction* right) |
