Skip to content

Commit 9a3c516

Browse files
authored
fix: remove redundant error check for PubKeyToProto (#4917)
I don't see this on main branch, so this is just a patch for v0.38.x --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments
1 parent d03254d commit 9a3c516

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

privval/signer_requestHandler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ func DefaultValidationRequestHandler(
3636
return res, err
3737
}
3838
pk, err := cryptoenc.PubKeyToProto(pubKey)
39-
if err != nil {
40-
return res, err
41-
}
42-
4339
if err != nil {
4440
res = mustWrapMsg(&privvalproto.PubKeyResponse{
4541
PubKey: cryptoproto.PublicKey{}, Error: &privvalproto.RemoteSignerError{Code: 0, Description: err.Error()}})

0 commit comments

Comments
 (0)