File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -128,17 +128,15 @@ func SignatureWithPublicKeyFromBase58EncodedString(base58EncodedString string) (
128
128
func SignatureWithPublicKeyFromReader (reader * bytes.Reader ) (signatureWithPublicKey SignatureWithPublicKey , err error ) {
129
129
if signatureWithPublicKey .PublicKey , err = PublicKeyFromReader (reader ); err != nil {
130
130
err = ierrors .Wrap (err , "failed to parse PublicKey from Reader" )
131
-
132
- return
131
+ return SignatureWithPublicKey {}, err
133
132
}
134
133
135
134
if signatureWithPublicKey .Signature , err = SignatureFromReader (reader ); err != nil {
136
135
err = ierrors .Wrap (err , "failed to parse Signature from Reader" )
137
-
138
- return
136
+ return SignatureWithPublicKey {}, err
139
137
}
140
138
141
- return
139
+ return signatureWithPublicKey , nil
142
140
}
143
141
144
142
// IsValid returns true if the signature is correct for the given data.
You can’t perform that action at this time.
0 commit comments