mirror of
https://github.com/Jguer/yay
synced 2024-08-31 21:58:39 +00: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 a new issue