From c8506b247eeb5b97c031af9f638c3ba6d1d7d99b Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 6 Jul 2022 10:54:15 +0300 Subject: [PATCH] [#1582] *: Fix linter warnings Signed-off-by: Pavel Karpy --- pkg/morph/client/fee.go | 6 ------ pkg/services/container/morph/executor.go | 4 +--- pkg/util/attributes/parser.go | 9 --------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/pkg/morph/client/fee.go b/pkg/morph/client/fee.go index e7059da2..8a38c4f5 100644 --- a/pkg/morph/client/fee.go +++ b/pkg/morph/client/fee.go @@ -2,12 +2,6 @@ package client import "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" -// customFees represents source of customized per-operation fees. -// Can be initialized using var declaration. -// -// Instances are not thread-safe, so they mean initially filling, and then only reading. -type customFees map[string]fixedn.Fixed8 - // setFeeForMethod sets fee for the operation executed using specified contract method. func (x *fees) setFeeForMethod(method string, fee fixedn.Fixed8) { if x.customFees == nil { diff --git a/pkg/services/container/morph/executor.go b/pkg/services/container/morph/executor.go index df8b4be9..79923201 100644 --- a/pkg/services/container/morph/executor.go +++ b/pkg/services/container/morph/executor.go @@ -152,9 +152,7 @@ func (s *morphExecutor) Get(ctx context.Context, body *container.GetRequestBody) return nil, err } - var sigV2 *refs.Signature - - sigV2 = new(refs.Signature) + sigV2 := new(refs.Signature) cnr.Signature.WriteToV2(sigV2) var tokV2 *sessionV2.Token diff --git a/pkg/util/attributes/parser.go b/pkg/util/attributes/parser.go index efb5c798..6ace9b35 100644 --- a/pkg/util/attributes/parser.go +++ b/pkg/util/attributes/parser.go @@ -69,12 +69,3 @@ func replaceEscaping(target string, rollback bool) (s string) { return } - -func hasString(lst []string, v string) bool { - for i := range lst { - if lst[i] == v { - return true - } - } - return false -}