Skip to content

Commit

Permalink
Don't return length with queryRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Jul 31, 2018
1 parent dfe7738 commit 06a45ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ func numberMenu(pkgS []string, flags []string) (err error) {
lenaq = len(aq)
}
if mode == ModeRepo || mode == ModeAny {
pq, lenpq, repoErr = queryRepo(pkgS)
pq, repoErr = queryRepo(pkgS)
lenpq = len(pq)
if repoErr != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func syncSearch(pkgS []string) (err error) {
aq, aurErr = narrowSearch(pkgS, true)
}
if mode == ModeRepo || mode == ModeAny {
pq, _, repoErr = queryRepo(pkgS)
pq, repoErr = queryRepo(pkgS)
if repoErr != nil {
return err
}
Expand Down Expand Up @@ -254,7 +254,7 @@ func syncInfo(pkgS []string) (err error) {
}

// Search handles repo searches. Creates a RepoSearch struct.
func queryRepo(pkgInputN []string) (s repoQuery, n int, err error) {
func queryRepo(pkgInputN []string) (s repoQuery, err error) {
dbList, err := alpmHandle.SyncDbs()
if err != nil {
return
Expand Down

0 comments on commit 06a45ba

Please sign in to comment.