aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2023-03-06 09:10:34 +0200
committerOrgad Shaneh <orgads@gmail.com>2023-03-06 08:32:01 +0000
commit70369aca13e22ecb31dd31ffd6b9b2eb5537574e (patch)
tree4b69edc20b4e5ae6beb5a02c44835c56f8702d22
parent476c072b003eeee4ee0e1fe99f52a952a6d1ead5 (diff)
Android: Remove unreachable return
Reported by Coverity. Change-Id: Id1b67f0adae3ff0c9157428726778c8c3b2a03a7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r--src/plugins/android/androidmanager.cpp15
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)