From 333f778aa623e437098e1e5fb768be242a9a2582 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 12 May 2021 19:10:31 +0300 Subject: [PATCH] *: drop empty branches Fix this warning from staticcheck: SA9003: empty branch --- pkg/core/fee/calculate.go | 4 ++-- pkg/rpc/client/client.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/core/fee/calculate.go b/pkg/core/fee/calculate.go index 7a64caa2a..c15874932 100644 --- a/pkg/core/fee/calculate.go +++ b/pkg/core/fee/calculate.go @@ -25,9 +25,9 @@ func Calculate(base int64, script []byte) (int64, int) { size += io.GetVarSize(sizeInv) + sizeInv + io.GetVarSize(script) netFee += calculateMultisig(base, m) + calculateMultisig(base, n) netFee += base * ECDSAVerifyPrice * int64(n) - } else { + } /*else { // We can support more contract types in the future. - } + }*/ return netFee, size } diff --git a/pkg/rpc/client/client.go b/pkg/rpc/client/client.go index d112ef33c..4623a9070 100644 --- a/pkg/rpc/client/client.go +++ b/pkg/rpc/client/client.go @@ -91,8 +91,8 @@ func New(ctx context.Context, endpoint string, opts Options) (*Client, error) { } // TODO(@antdm): Enable SSL. - if opts.Cert != "" && opts.Key != "" { - } + // if opts.Cert != "" && opts.Key != "" { + // } cl := &Client{ ctx: ctx,