From 8fbb7d4bee1f06ef3adc8bb27ca0f1eb79a3e8ad Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Mon, 13 Jan 2025 11:52:54 +0530 Subject: [PATCH] rc on comments Signed-off-by: Feny Mehta --- pkg/space/space.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/space/space.go b/pkg/space/space.go index 4cfbd4339..6960226ca 100644 --- a/pkg/space/space.go +++ b/pkg/space/space.go @@ -46,7 +46,7 @@ func NewSpaceWithFeatureToggles(userSignup *toolchainv1alpha1.UserSignup, target func addFeatureToggles(space *toolchainv1alpha1.Space, toggles []toolchainconfig.FeatureToggle) { var winners []string for _, t := range toggles { - //the value of weight is not expected to go beyond 100 or negative , it won't overflow, hence its okay to ignore the overflow linter error + //the value of weight is not expected to go beyond 100, it won't overflow, hence its okay to ignore the overflow linter error weight := int(t.Weight()) // nolint:gosec // We generate a random number between 0 and 100. If the number is equal to or lower than the weight // then the feature wins.