From 2e639b81e2377f6d7cbb139e225556974740f916 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 28 Feb 2017 10:48:38 +0100 Subject: [PATCH] list: Don't check error twice --- app/flatpak-builtins-list.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/flatpak-builtins-list.c b/app/flatpak-builtins-list.c index dd925be7..0626026e 100644 --- a/app/flatpak-builtins-list.c +++ b/app/flatpak-builtins-list.c @@ -321,13 +321,6 @@ print_installed_refs (gboolean app, gboolean runtime, gboolean print_system, gbo if (system_dir == NULL) return FALSE; - if (system_dir == NULL) - { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, - "Can't find installation %s", installations[i]); - return FALSE; - } - if (!find_refs_for_dir (system_dir, app ? &installation_apps : NULL, runtime ? &installation_runtimes : NULL, cancellable, error)) return FALSE;