From 36af96160d83868caa152027803af9dbf4b25e23 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 16 Nov 2016 15:11:20 -0600 Subject: [PATCH] Remove unnecessary convs found by unconvert. This removes all unnecessary typecast conversions as found by the unconvert linter. --- notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify.go b/notify.go index bb572e50..2e486a1a 100644 --- a/notify.go +++ b/notify.go @@ -551,7 +551,7 @@ func parseTxAcceptedNtfnParams(params []json.RawMessage) (*chainhash.Hash, return nil, 0, err } - return txHash, btcutil.Amount(amt), nil + return txHash, amt, nil } // parseTxAcceptedVerboseNtfnParams parses out details about a raw transaction @@ -628,7 +628,7 @@ func parseAccountBalanceNtfnParams(params []json.RawMessage) (account string, return "", 0, false, err } - return account, btcutil.Amount(bal), confirmed, nil + return account, bal, confirmed, nil } // parseWalletLockStateNtfnParams parses out the account name and locked