Satisfied linter

This commit is contained in:
Jguer 2018-01-15 02:23:29 +09:00
parent b18724ac7e
commit 4abddaab66
No known key found for this signature in database
GPG Key ID: 09754DBECF21746F

View File

@ -211,7 +211,7 @@ func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err
fmt.Printf("\x1b[33mwarning:\x1b[0m %s ignoring package upgrade (%s => %s)\n", local[i].Name(), local[i].Version(), qtemp[x].Version) fmt.Printf("\x1b[33mwarning:\x1b[0m %s ignoring package upgrade (%s => %s)\n", local[i].Name(), local[i].Version(), qtemp[x].Version)
} else { } else {
packageC <- upgrade{qtemp[x].Name, "aur", local[i].Version(), qtemp[x].Version} packageC <- upgrade{qtemp[x].Name, "aur", local[i].Version(), qtemp[x].Version}
} }
} }
continue continue
} else { } else {
@ -320,12 +320,12 @@ func upgradePkgs(flags []string) error {
} }
repoNames = append(repoNames, k.Name) repoNames = append(repoNames, k.Name)
} }
arguments := makeArguments() arguments := makeArguments()
arguments.addArg("S", "noconfirm") arguments.addArg("S", "noconfirm")
arguments.addArg(flags...) arguments.addArg(flags...)
arguments.addTarget(repoNames...) arguments.addTarget(repoNames...)
err := passToPacman(arguments) err := passToPacman(arguments)
if err != nil { if err != nil {
fmt.Println("Error upgrading repo packages.") fmt.Println("Error upgrading repo packages.")