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:
parent
a7d7798032
commit
7ad78c2c88
1 changed files with 2 additions and 4 deletions
|
@ -95,13 +95,11 @@ pkgfilter() {
|
||||||
# enforce architecture match if specified
|
# enforce architecture match if specified
|
||||||
if (!scanarch || scanarch == idx[2]) {
|
if (!scanarch || scanarch == idx[2]) {
|
||||||
count = split(packages[idx[1], idx[2]], pkgs, SUBSEP)
|
count = split(packages[idx[1], idx[2]], pkgs, SUBSEP)
|
||||||
if (count > keep) {
|
|
||||||
for(i = 1; i <= count - keep; i++) {
|
for(i = 1; i <= count - keep; i++) {
|
||||||
print pkgs[i]
|
print pkgs[i]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}' "${@:3}"
|
}' "${@:3}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue