mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +00:00
pkg/completion interfaces more strict
This commit is contained in:
parent
73d87b01b0
commit
077b1092fd
|
@ -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