diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2023-03-06 09:10:34 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2023-03-06 08:32:01 +0000 |
commit | 70369aca13e22ecb31dd31ffd6b9b2eb5537574e (patch) | |
tree | 4b69edc20b4e5ae6beb5a02c44835c56f8702d22 /src/plugins/android | |
parent | 476c072b003eeee4ee0e1fe99f52a952a6d1ead5 (diff) | |
download | qt-creator-70369aca13e22ecb31dd31ffd6b9b2eb5537574e.tar.gz |
Android: Remove unreachable return
Reported by Coverity.
Change-Id: Id1b67f0adae3ff0c9157428726778c8c3b2a03a7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/android')
-rw-r--r-- | src/plugins/android/androidmanager.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/android/androidmanager.cpp b/src/plugins/android/androidmanager.cpp index e4d47be733..a15da30048 100644 --- a/src/plugins/android/androidmanager.cpp +++ b/src/plugins/android/androidmanager.cpp @@ -278,18 +278,15 @@ QString packageSubPath(PackageFormat format, BuildConfiguration::BuildType build const bool deb = (buildType == BuildConfiguration::Debug); if (format == Apk) { - if (deb) + if (deb) { return sig ? packageSubPath(Apk, BuildConfiguration::Release, true) // Intentional : QLatin1String("apk/debug/android-build-debug.apk"); - else - return QLatin1String(sig ? "apk/release/android-build-release-signed.apk" - : "apk/release/android-build-release-unsigned.apk"); - } else { - return QLatin1String(deb ? "bundle/debug/android-build-debug.aab" - : "bundle/release/android-build-release.aab"); + } + return QLatin1String(sig ? "apk/release/android-build-release-signed.apk" + : "apk/release/android-build-release-unsigned.apk"); } - - return {}; + return QLatin1String(deb ? "bundle/debug/android-build-debug.aab" + : "bundle/release/android-build-release.aab"); } FilePath AndroidManager::packagePath(const Target *target) |