Skip to content

Commit e3060cc

Browse files
committed
Fix callback return inside of promise causing undefined.
1 parent a716aae commit e3060cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/key/private.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function _public(cb) {
194194
? extcrypto.extract(self.raw())
195195
: Buffer.from(sodium.crypto_sign_ed25519_sk_to_pk(self.raw()));
196196

197-
return pk.inject(rkey, (err) => {
197+
return pk.inject(rkey).then((err) => {
198198
if (err) { return done(err); }
199199
return done(null, pk);
200200
});

0 commit comments

Comments
 (0)