bugfix readKeypair
This commit is contained in:
parent
4ac6e7f8dd
commit
4ab4cbd2ab
|
@ -338,7 +338,9 @@ if ('sign' === opts.action) {
|
|||
}));
|
||||
});
|
||||
} else {
|
||||
return convertKeypair();
|
||||
return kp.then(function (pair) {
|
||||
return convertKeypair(pair);
|
||||
});
|
||||
}
|
||||
|
||||
function readKeypair() {
|
||||
|
@ -368,8 +370,8 @@ function readKeypair() {
|
|||
return pair;
|
||||
}
|
||||
|
||||
function convertKeypair() {
|
||||
var pair = readKeypair();
|
||||
function convertKeypair(pair) {
|
||||
//var pair = readKeypair();
|
||||
|
||||
var ps = [];
|
||||
if (pair.private && !opts.public) {
|
||||
|
|
Loading…
Reference in New Issue