diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-09-13 18:22:46 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-18 15:34:54 -0500 |
commit | 7ad78c2c88ea3a7a1a33c4d09c2e6e4c772da25e (patch) | |
tree | ca814c9716e47a9094af707fe71936f100785040 /contrib | |
parent | a7d779803239a1dca43a6879f3938c5e63811992 (diff) | |
download | pacman-7ad78c2c88ea3a7a1a33c4d09c2e6e4c772da25e.tar.xz |
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 <dreisner@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/paccache.in | 6 |
1 files 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] } } } |