From 7ad78c2c88ea3a7a1a33c4d09c2e6e4c772da25e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 13 Sep 2011 18:22:46 -0400 Subject: paccache: remove unnecessary if check This is superfluous as the ensuing for loop will exit immediately on the same condition avoided by the if. Signed-off-by: Dave Reisner --- contrib/paccache.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/paccache.in b/contrib/paccache.in index 8a8cad4b..11b7bbb5 100755 --- a/contrib/paccache.in +++ b/contrib/paccache.in @@ -95,10 +95,8 @@ pkgfilter() { # enforce architecture match if specified if (!scanarch || scanarch == idx[2]) { count = split(packages[idx[1], idx[2]], pkgs, SUBSEP) - if (count > keep) { - for(i = 1; i <= count - keep; i++) { - print pkgs[i] - } + for(i = 1; i <= count - keep; i++) { + print pkgs[i] } } } -- cgit v1.2.3-70-g09d2