Skip to content

Commit

Permalink
webapi: Remove unnecessary err check.
Browse files Browse the repository at this point in the history
err has already been checked and is known to be nil at this point.
  • Loading branch information
jholdstock committed May 16, 2024
1 parent 15590a6 commit 92a0eb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/webapi/getfeeaddress.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 92a0eb7

Please sign in to comment.