summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-09-13 18:22:46 -0400
committerDan McGee <dan@archlinux.org>2011-09-18 15:34:54 -0500
commit7ad78c2c88ea3a7a1a33c4d09c2e6e4c772da25e (patch)
treeca814c9716e47a9094af707fe71936f100785040
parenta7d779803239a1dca43a6879f3938c5e63811992 (diff)
downloadpacman-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>
-rwxr-xr-xcontrib/paccache.in6
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]
}
}
}