Skip to content

Commit

Permalink
pkg/completion interfaces more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Oct 15, 2019
1 parent 73d87b0 commit 077b109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/completion/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Update(alpmHandle *alpm.Handle, aurURL string, cacheDir string, interval in
}

//CreateAURList creates a new completion file
func createAURList(aurURL string, out io.ReadWriteSeeker) error {
func createAURList(aurURL string, out io.Writer) error {
resp, err := http.Get(aurURL + "/packages.gz")
if err != nil {
return err
Expand All @@ -79,7 +79,7 @@ func createAURList(aurURL string, out io.ReadWriteSeeker) error {
}

//CreatePackageList appends Repo packages to completion cache
func createRepoList(alpmHandle *alpm.Handle, out io.ReadWriteSeeker) error {
func createRepoList(alpmHandle *alpm.Handle, out io.Writer) error {
dbList, err := alpmHandle.SyncDBs()
if err != nil {
return err
Expand Down

0 comments on commit 077b109

Please sign in to comment.