]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import: drop redundant {}, as per coding style
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jan 2021 16:35:47 +0000 (17:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Jan 2021 19:54:51 +0000 (20:54 +0100)
src/import/import.c

index 842e1142f824b445e3eb87eb967bb7e57d2f0319..934074a7b0abd22eba5d7611732bd96449106c53 100644 (file)
@@ -71,11 +71,10 @@ static int import_tar(int argc, char *argv[], void *userdata) {
                         if (r < 0) {
                                 if (r != -ENOENT)
                                         return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
-                        } else {
+                        } else
                                 return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
                                                        "Image '%s' already exists.",
                                                        local);
-                        }
                 }
         } else
                 local = "imported";
@@ -164,11 +163,10 @@ static int import_raw(int argc, char *argv[], void *userdata) {
                         if (r < 0) {
                                 if (r != -ENOENT)
                                         return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
-                        } else {
+                        } else
                                 return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
                                                        "Image '%s' already exists.",
                                                        local);
-                        }
                 }
         } else
                 local = "imported";