From 077b1092fdd2d2b602c432622d44d34b85892790 Mon Sep 17 00:00:00 2001 From: Jguer Date: Wed, 16 Oct 2019 00:03:58 +0100 Subject: [PATCH] pkg/completion interfaces more strict --- pkg/completion/completion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/completion/completion.go b/pkg/completion/completion.go index a4df5176..106c64b7 100644 --- a/pkg/completion/completion.go +++ b/pkg/completion/completion.go @@ -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 @@ -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