mirror of
https://github.com/Jguer/yay
synced 2024-10-01 13:53:32 +00:00
replace else/if by else if
This commit is contained in:
parent
9ffcf6921c
commit
c219e6dfa1
|
@ -323,14 +323,10 @@ func (u *UpgradeService) UserExcludeUpgrades(graph *topo.Graph[string, *dep.Inst
|
|||
u.log.Debugln("pruning", up.Name)
|
||||
excluded = append(excluded, graph.Prune(up.Name)...)
|
||||
}
|
||||
} else {
|
||||
// If the user explicitely wants to include a package/repository, exclude everything else
|
||||
if !include.Get(upgradeId) && !otherInclude.Contains(up.Repository) {
|
||||
u.log.Debugln("pruning", up.Name)
|
||||
excluded = append(excluded, graph.Prune(up.Name)...)
|
||||
}
|
||||
} else if !include.Get(upgradeId) && !otherInclude.Contains(up.Repository) { // If the user explicitely wants to include a package/repository, exclude everything else
|
||||
u.log.Debugln("pruning", up.Name)
|
||||
excluded = append(excluded, graph.Prune(up.Name)...)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return excluded, nil
|
||||
|
|
Loading…
Reference in a new issue