mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +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,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…
Reference in New Issue
Block a user