From e9e7901f67f99998c6082bc46c95f1e652fe19b9 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 3 May 2023 14:09:59 +0300 Subject: [PATCH] [#27] util/proto: Fix staticcheck warning Signed-off-by: Evgenii Stratonikov --- util/proto/marshal_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/proto/marshal_test.go b/util/proto/marshal_test.go index de2b72f..11a4d8f 100644 --- a/util/proto/marshal_test.go +++ b/util/proto/marshal_test.go @@ -37,8 +37,8 @@ type stableRepPrimitives struct { const ( ENUM_UNKNOWN SomeEnum = 0 - ENUM_POSITIVE = 1 - ENUM_NEGATIVE = -1 + ENUM_POSITIVE SomeEnum = 1 + ENUM_NEGATIVE SomeEnum = -1 ) func (s *stablePrimitives) stableMarshal(buf []byte, wrongField bool) ([]byte, error) {