forked from TrueCloudLab/frostfs-node
[#1582] *: Fix linter warnings
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
df0d352305
commit
c8506b247e
3 changed files with 1 additions and 18 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue