diff options
Diffstat (limited to 'src/lib/corelib/tools/vsenvironmentdetector.cpp')
-rw-r--r-- | src/lib/corelib/tools/vsenvironmentdetector.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/corelib/tools/vsenvironmentdetector.cpp b/src/lib/corelib/tools/vsenvironmentdetector.cpp index 82dff578f..06c34a79d 100644 --- a/src/lib/corelib/tools/vsenvironmentdetector.cpp +++ b/src/lib/corelib/tools/vsenvironmentdetector.cpp @@ -124,14 +124,12 @@ QString VsEnvironmentDetector::findVcVarsAllBat(const MSVC &msvc, QString fullPath = dir.absoluteFilePath(path); if (dir.exists(path)) return fullPath; - else - searchedPaths.push_back(fullPath); + searchedPaths.push_back(fullPath); path = QStringLiteral("Auxiliary/Build/") + vcvarsallbat; fullPath = dir.absoluteFilePath(path); if (dir.exists(path)) return fullPath; - else - searchedPaths.push_back(fullPath); + searchedPaths.push_back(fullPath); return {}; } |