mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
fix(query): allocate capacity in filterDebugPkgs
(addresses review in PR #1484 by Jguer)
This commit is contained in:
parent
3efb43af95
commit
64e5b9e93d
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user