style: change one argument switch to if
This commit is contained in:
parent
0813126058
commit
529bbbde4d
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue