fix(print): fix #1158. initialize stringset in warnings declaration

This commit is contained in:
Jguer 2020-01-17 20:51:29 +01:00 committed by J Guerreiro
parent 1f007f39ab
commit 3a5a6a77b3

View file

@ -377,7 +377,7 @@ func localStatistics() error {
//TODO: Make it less hacky
func printNumberOfUpdates() error {
//todo
warnings := &aurWarnings{}
warnings := makeWarnings()
old := os.Stdout // keep backup of the real stdout
os.Stdout = nil
aurUp, repoUp, err := upList(warnings)
@ -393,7 +393,7 @@ func printNumberOfUpdates() error {
//TODO: Make it less hacky
func printUpdateList(parser *arguments) error {
targets := stringset.FromSlice(parser.targets)
warnings := &aurWarnings{}
warnings := makeWarnings()
old := os.Stdout // keep backup of the real stdout
os.Stdout = nil
_, _, localNames, remoteNames, err := filterPackages()