From b98e993d764f545f0dac9b4e9df9bc7ad0ae734e Mon Sep 17 00:00:00 2001 From: Micah Lerner Date: Mon, 27 Nov 2017 23:09:05 -0500 Subject: [PATCH] lnallet: remove a TODO from signer.go The TODO indicated that the fmt.Errorf call should be changed to use the errors package, which allows for wrapping of errors as necessary. --- lnwallet/btcwallet/signer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lnwallet/btcwallet/signer.go b/lnwallet/btcwallet/signer.go index d8e01b4e..eb6e7abd 100644 --- a/lnwallet/btcwallet/signer.go +++ b/lnwallet/btcwallet/signer.go @@ -1,8 +1,6 @@ package btcwallet import ( - "fmt" - "github.com/go-errors/errors" "github.com/lightningnetwork/lnd/lnwallet" "github.com/roasbeef/btcd/btcec" @@ -72,8 +70,7 @@ func (b *BtcWallet) fetchOutputAddr(script []byte) (waddrmgr.ManagedAddress, err } } - // TODO(roasbeef): use the errors.wrap package - return nil, fmt.Errorf("address not found") + return nil, errors.Errorf("address not found") } // fetchPrivKey attempts to retrieve the raw private key corresponding to the