From 2ab214eac1523f6f6e4f6f210305817cbd8ccbca Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Jan 2021 17:35:47 +0100 Subject: [PATCH] import: drop redundant {}, as per coding style --- src/import/import.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/import/import.c b/src/import/import.c index 842e1142f8..934074a7b0 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -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";