From 0d536aa594204cfd929995deff4a6dacc95677ee Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 22 Mar 2010 08:42:35 +0200 Subject: [PATCH] Eliminate redundant if --- lib/depends.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/depends.c b/lib/depends.c index b08371b..a5c7252 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -309,15 +309,12 @@ addheader: tsmem->order[oc] = p; if (!duplicate) { tsmem->orderCount++; + tsmem->numAddedPackages++; rpmcliPackagesTotal++; } rpmalAdd(tsmem->addedPackages, p); - if (!duplicate) { - tsmem->numAddedPackages++; - } - /* If not upgrading or a source package, then we're done. */ if (!(upgrade & 0x1) || isSource) goto exit; -- 2.7.4