mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
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:
parent
58ab3f5f83
commit
b98e993d76
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue