We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bed145 commit 636d44eCopy full SHA for 636d44e
core/peer/peer.go
@@ -169,7 +169,10 @@ func IDFromPublicKey(pk ic.PubKey) (ID, error) {
169
if AdvancedEnableInlining && len(b) <= maxInlineKeyLength {
170
alg = mh.IDENTITY
171
}
172
- hash, _ := mh.Sum(b, alg, -1)
+ hash, err := mh.Sum(b, alg, -1)
173
+ if err != nil {
174
+ return "", err
175
+ }
176
return ID(hash), nil
177
178
0 commit comments