*: drop empty branches

Fix this warning from staticcheck: SA9003: empty branch
This commit is contained in:
Roman Khimov 2021-05-12 19:10:31 +03:00
parent 92dbb3c4b9
commit 333f778aa6
2 changed files with 4 additions and 4 deletions

View file

@ -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
}

View file

@ -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,