list: Don't check error twice

tingping/wmclass
Alexander Larsson 2017-02-28 10:48:38 +01:00
parent 4db1e74090
commit 2e639b81e2
1 changed files with 0 additions and 7 deletions

View File

@ -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;