Skip to content

Commit

Permalink
fix(print): fix #1158. initialize stringset in warnings declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Jan 17, 2020
1 parent 1f007f3 commit 3a5a6a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions print.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit 3a5a6a7

Please sign in to comment.