fix(query): allocate capacity in filterDebugPkgs

(addresses review in PR #1484 by Jguer)
This commit is contained in:
Ferdinand Bachmann 2021-04-05 23:47:29 +02:00 committed by J Guerreiro
parent 3efb43af95
commit 64e5b9e93d

View File

@ -46,8 +46,8 @@ func (warnings *AURWarnings) Print() {
}
func filterDebugPkgs(names []string) (normal, debug []string) {
normal = make([]string, 0)
debug = make([]string, 0)
normal = make([]string, 0, len(names))
debug = make([]string, 0, len(names))
for _, name := range names {
if strings.HasSuffix(name, "-debug") {