summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2022-06-24 14:21:39 -0700
committerPhaedrus Leeds <mwl458@gmail.com>2022-07-23 14:18:50 -0500
commit0465c464afa7038e2b03bdd435898ad68a354290 (patch)
tree00196ec8ffb23c12c69633051c84c65156c81f78 /app
parentda5a38c17c6dbfc28da255bea960d2a33eeba8e9 (diff)
downloadflatpak-0465c464afa7038e2b03bdd435898ad68a354290.tar.gz
app: Remove a duplicated else if block
Diffstat (limited to 'app')
-rw-r--r--app/flatpak-cli-transaction.c2
-rw-r--r--app/flatpak-quiet-transaction.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/app/flatpak-cli-transaction.c b/app/flatpak-cli-transaction.c
index 85062180..339631f5 100644
--- a/app/flatpak-cli-transaction.c
+++ b/app/flatpak-cli-transaction.c
@@ -508,8 +508,6 @@ operation_error (FlatpakTransaction *transaction,
msg = g_strdup_printf (_("%s%s%s already installed"), on, flatpak_ref_get_name (rref), off);
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED))
msg = g_strdup_printf (_("%s%s%s not installed"), on, flatpak_ref_get_name (rref), off);
- else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED))
- msg = g_strdup_printf (_("%s%s%s not installed"), on, flatpak_ref_get_name (rref), off);
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NEED_NEW_FLATPAK))
msg = g_strdup_printf (_("%s%s%s needs a later flatpak version"), on, flatpak_ref_get_name (rref), off);
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_OUT_OF_SPACE))
diff --git a/app/flatpak-quiet-transaction.c b/app/flatpak-quiet-transaction.c
index 9fde8a3d..59fcb67d 100644
--- a/app/flatpak-quiet-transaction.c
+++ b/app/flatpak-quiet-transaction.c
@@ -166,8 +166,6 @@ operation_error (FlatpakTransaction *transaction,
msg = g_strdup_printf (_("%s already installed"), flatpak_ref_get_name (rref));
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED))
msg = g_strdup_printf (_("%s not installed"), flatpak_ref_get_name (rref));
- else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED))
- msg = g_strdup_printf (_("%s not installed"), flatpak_ref_get_name (rref));
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_NEED_NEW_FLATPAK))
msg = g_strdup_printf (_("%s needs a later flatpak version"), flatpak_ref_get_name (rref));
else if (g_error_matches (error, FLATPAK_ERROR, FLATPAK_ERROR_OUT_OF_SPACE))