mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-12 12:32:32 +02:00
fix: removing redundancy
This commit is contained in:
@ -42,8 +42,7 @@ func PrivateKeyFromSeed(seed []byte) (string, error) {
|
||||
next := key
|
||||
for _, idx := range derivationPath {
|
||||
var err error
|
||||
next, err = next.NewChildKey(idx)
|
||||
if err != nil {
|
||||
if next, err = next.NewChildKey(idx); err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user