From 92a0eb7d4a2ec51a26b30158b79b2649331e2ff4 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 14 May 2024 09:22:35 +0100 Subject: [PATCH] webapi: Remove unnecessary err check. err has already been checked and is known to be nil at this point. --- internal/webapi/getfeeaddress.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/webapi/getfeeaddress.go b/internal/webapi/getfeeaddress.go index 6ba0e4d6..bb95df60 100644 --- a/internal/webapi/getfeeaddress.go +++ b/internal/webapi/getfeeaddress.go @@ -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 }