[#1582] *: Fix linter warnings

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-07-06 10:54:15 +03:00 committed by fyrchik
parent df0d352305
commit c8506b247e
3 changed files with 1 additions and 18 deletions

View file

@ -2,12 +2,6 @@ package client
import "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" 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. // setFeeForMethod sets fee for the operation executed using specified contract method.
func (x *fees) setFeeForMethod(method string, fee fixedn.Fixed8) { func (x *fees) setFeeForMethod(method string, fee fixedn.Fixed8) {
if x.customFees == nil { if x.customFees == nil {

View file

@ -152,9 +152,7 @@ func (s *morphExecutor) Get(ctx context.Context, body *container.GetRequestBody)
return nil, err return nil, err
} }
var sigV2 *refs.Signature sigV2 := new(refs.Signature)
sigV2 = new(refs.Signature)
cnr.Signature.WriteToV2(sigV2) cnr.Signature.WriteToV2(sigV2)
var tokV2 *sessionV2.Token var tokV2 *sessionV2.Token

View file

@ -69,12 +69,3 @@ func replaceEscaping(target string, rollback bool) (s string) {
return return
} }
func hasString(lst []string, v string) bool {
for i := range lst {
if lst[i] == v {
return true
}
}
return false
}