Skip to content

Commit

Permalink
Yet another go on making linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva committed Oct 31, 2024
1 parent 3d661a4 commit 4ae1200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/keys/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ At the moment, only the secp256k1 curve/algo is supported.`,
privKeyHexLC := strings.ToLower(privKeyHex)
if strings.HasPrefix(privKeyHexLC, "0x") {
privKeyHexLC = privKeyHexLC[2:]
} else if strings.HasPrefix(privKeyHexLC, "x") {
} else if strings.HasPrefix(privKeyHexLC, "x") { //nolint:gosimple,S1017 false positive, see https://github.com/dominikh/go-tools/issues/1447
privKeyHexLC = privKeyHexLC[1:]
}

Expand Down
4 changes: 2 additions & 2 deletions crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ func (ks keystore) ImportUnarmoredPrivKey(uid string, unarmoredPrivKeyRaw []byte
}

// privKey, err := legacy.PrivKeyFromBytes(privKeyRaw)
//if err != nil {
// if err != nil {
// return errors.Wrap(err, "failed to create private key from provided hex value")
//}
// }

info, err := ks.writeLocalKey(uid, privKey, hd.PubKeyType(algo))
if err != nil {
Expand Down

0 comments on commit 4ae1200

Please sign in to comment.