From 0465c464afa7038e2b03bdd435898ad68a354290 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Fri, 24 Jun 2022 14:21:39 -0700 Subject: app: Remove a duplicated else if block --- app/flatpak-cli-transaction.c | 2 -- app/flatpak-quiet-transaction.c | 2 -- 2 files changed, 4 deletions(-) (limited to 'app') 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)) -- cgit v1.2.1