[gnome-builder/gnome-builder-41] flatpak: remove some goto



commit 4b273da8f0c8093ea05920e342227f1a1811cef1
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 16 15:24:41 2021 -0800

    flatpak: remove some goto

 src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c 
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index 2daf9d141..30899cdac 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -965,7 +965,7 @@ find_installations_for_refs (IpcFlatpakServiceImpl *self,
               str_equal0 (branch, r->branch))
             {
               g_ptr_array_add (installations, g_object_ref (r->installation));
-              goto next_ref;
+              continue;
             }
         }
 
@@ -977,14 +977,11 @@ find_installations_for_refs (IpcFlatpakServiceImpl *self,
           flatpak_installation_get_is_user (install))
         {
           g_ptr_array_add (installations, g_steal_pointer (&install));
-          goto next_ref;
+          continue;
         }
 
       /* Default to our internal private installation */
       g_ptr_array_add (installations, g_object_ref (private_install->installation));
-
-    next_ref:
-      continue;
     }
 
   return installations;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]