diff --git a/pkg/query/source.go b/pkg/query/source.go index 877f08ed..a90cc00a 100644 --- a/pkg/query/source.go +++ b/pkg/query/source.go @@ -188,10 +188,7 @@ func queryAUR(ctx context.Context, aurClient *aur.Client, pkgS []string, searchB return r, err } - var ( - aq aurQuery - n int - ) + aq := make(aurQuery, 0, len(r)) for i := range r { match := true @@ -213,8 +210,6 @@ func queryAUR(ctx context.Context, aurClient *aur.Client, pkgS []string, searchB } if match { - n++ - aq = append(aq, r[i]) } }