mirror of
https://github.com/Jguer/yay.git
synced 2025-12-15 00:05:43 -05:00
Use exisiting util function
This commit is contained in:
parent
51f7b14777
commit
b103a34f3b
8
query.go
8
query.go
@ -299,13 +299,7 @@ func hangingPackages(removeOptional bool) (hanging []string, err error) {
|
||||
}
|
||||
|
||||
pkg.Provides().ForEach(func(dep alpm.Depend) error {
|
||||
if deps, ok := provides[dep.Name]; ok {
|
||||
deps.set(pkg.Name())
|
||||
} else {
|
||||
ss := make(stringSet)
|
||||
ss.set(pkg.Name())
|
||||
provides[dep.Name] = ss
|
||||
}
|
||||
addMapStringSet(provides, dep.Name, pkg.Name())
|
||||
return nil
|
||||
})
|
||||
return nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user