webapi: Remove unnecessary err check.

err has already been checked and is known to be nil at this point.
This commit is contained in:
jholdstock 2024-05-14 09:22:35 +01:00 committed by Jamie Holdstock
parent 15590a6dda
commit 92a0eb7d4a

View File

@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 The Decred developers
// Copyright (c) 2021-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
@ -61,9 +61,7 @@ func (w *WebAPI) getCurrentFee(dcrdClient *rpc.DcrdRPC) (dcrutil.Amount, error)
fee := txrules.StakePoolTicketFee(sDiff, defaultMinRelayTxFee, int32(bestBlock.Height),
w.cfg.VSPFee, w.cfg.Network.Params, isDCP0010Active)
if err != nil {
return 0, err
}
return fee, nil
}