From 529bbbde4dff206e762aa8a61a1d743c209ffe78 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sun, 18 Aug 2024 15:37:42 +0200 Subject: [PATCH] style: change one argument switch to if --- routers/web/user/package.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 204efe6001..d47a36e165 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -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) } }