Chore: Cleanup (#1800)

This commit is contained in:
Jo authored and GitHub committed 2022-08-22 22:20:09 +00:00
1 parent b6b1888e89
commit 714fee0b18
9 files changed
+35 -43

No files matched your search

+2 -2
View File
@@ -54,7 +54,7 @@ func NewSourceQueryBuilder(
}
}
func (s *SourceQueryBuilder) Execute(ctx context.Context, dbExecutor db.Executor, aurClient *aur.Client, pkgS []string) {
func (s *SourceQueryBuilder) Execute(ctx context.Context, dbExecutor db.Executor, aurClient aur.ClientInterface, pkgS []string) {
var aurErr error
pkgS = RemoveInvalidTargets(pkgS, s.targetMode)
@@ -176,7 +176,7 @@ func filterAURResults(pkgS []string, results []aur.Pkg) []aur.Pkg {
}
// queryAUR searches AUR and narrows based on subarguments.
func queryAUR(ctx context.Context, aurClient *aur.Client, pkgS []string, searchBy string) ([]aur.Pkg, error) {
func queryAUR(ctx context.Context, aurClient aur.ClientInterface, pkgS []string, searchBy string) ([]aur.Pkg, error) {
var (
err error
by = getSearchBy(searchBy)