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>
This commit is contained in:
Dave Reisner 2011-09-13 18:22:46 -04:00 committed by Dan McGee
parent a7d7798032
commit 7ad78c2c88
1 changed files with 2 additions and 4 deletions

View File

@ -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]
}
}
}