From: Lennart Poettering Date: Fri, 22 Jan 2021 16:35:47 +0000 (+0100) Subject: import: drop redundant {}, as per coding style X-Git-Tag: v248-rc1~269^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ab214eac1523f6f6e4f6f210305817cbd8ccbca;p=thirdparty%2Fsystemd.git import: drop redundant {}, as per coding style --- diff --git a/src/import/import.c b/src/import/import.c index 842e1142f82..934074a7b0a 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";