From 37ebf62c74202db267d2eb33283555d614edc70b Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 9 Aug 2007 22:33:20 +0200 Subject: [PATCH] Revert style breakage. The breakage is a result of editing and incomplete reversal. --- builtin-prune-packed.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index 6473d327e6..977730064b 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -25,10 +25,8 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts) memcpy(pathname + len, de->d_name, 38); if (opts & DRY_RUN) printf("rm -f %s\n", pathname); - else { - if (unlink(pathname) < 0) - error("unable to unlink %s", pathname); - } + else if (unlink(pathname) < 0) + error("unable to unlink %s", pathname); } pathname[len] = 0; rmdir(pathname);