bugfix readKeypair

This commit is contained in:
AJ ONeal 2019-03-05 07:35:22 -07:00
parent 4ac6e7f8dd
commit 4ab4cbd2ab
1 changed files with 5 additions and 3 deletions

View File

@ -338,7 +338,9 @@ if ('sign' === opts.action) {
})); }));
}); });
} else { } else {
return convertKeypair(); return kp.then(function (pair) {
return convertKeypair(pair);
});
} }
function readKeypair() { function readKeypair() {
@ -368,8 +370,8 @@ function readKeypair() {
return pair; return pair;
} }
function convertKeypair() { function convertKeypair(pair) {
var pair = readKeypair(); //var pair = readKeypair();
var ps = []; var ps = [];
if (pair.private && !opts.public) { if (pair.private && !opts.public) {