mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
pkg/completion interfaces more strict
This commit is contained in:
parent
73d87b01b0
commit
077b1092fd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue