]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: drop unnecessary brackets
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Oct 2024 04:45:46 +0000 (13:45 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Oct 2024 07:01:57 +0000 (09:01 +0200)
Follow-up for 164ca24d7464253e5f8375226b792ef8f6eaffd0.

src/home/homectl.c

index 741e5d72b7a4dc5f8357f73ebf2f195534150d35..87961a2f2227494cd154849aab186fbd8d9dfc04 100644 (file)
@@ -2438,7 +2438,7 @@ static int acquire_group_list(char ***ret) {
                 log_debug_errno(r, "No groups found.");
         else if (r < 0)
                 return log_debug_errno(r, "Failed to enumerate groups, ignoring: %m");
-        else {
+        else
                 for (;;) {
                         _cleanup_(group_record_unrefp) GroupRecord *gr = NULL;
 
@@ -2468,7 +2468,6 @@ static int acquire_group_list(char ***ret) {
                         if (r < 0)
                                 return log_oom();
                 }
-        }
 
         strv_sort(groups);