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.
This commit is contained in:
Micah Lerner 2017-11-27 23:09:05 -05:00 committed by Olaoluwa Osuntokun
parent 58ab3f5f83
commit b98e993d76
1 changed files with 1 additions and 4 deletions

View File

@ -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