style: change one argument switch to if

This commit is contained in:
TheFox0x7 2024-08-18 15:37:42 +02:00
parent 0813126058
commit 529bbbde4d
No known key found for this signature in database
GPG key ID: 6CA33903484AF7C2

View file

@ -208,8 +208,7 @@ func ViewPackageVersion(ctx *context.Context) {
groups := make(container.Set[string])
for _, f := range pd.Files {
for _, pp := range f.Properties {
switch pp.Name {
case arch_model.PropertyDistribution:
if pp.Name == arch_model.PropertyDistribution {
groups.Add(pp.Value)
}
}