mirror of
https://github.com/Jguer/yay
synced 2024-10-06 08:09:11 +00:00
fix(print): fix #1158. initialize stringset in warnings declaration
This commit is contained in:
parent
1f007f39ab
commit
3a5a6a77b3
4
print.go
4
print.go
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue