Code review improvements.
This commit is contained in:
parent
8391d11d49
commit
a59a9e137e
2
index.js
2
index.js
|
@ -65,7 +65,7 @@ module.exports.create = (createOptions) => {
|
|||
return require("./lib/accounts/set").set(opts, options, s3);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return handlers;
|
||||
|
||||
|
|
|
@ -19,4 +19,4 @@ module.exports.setKeypair = (opts, options, s3) => {
|
|||
console.error("There was an error creating account keypair:", err.message);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
};
|
|
@ -13,7 +13,7 @@ module.exports.checkKeypair = (opts, options, s3) => {
|
|||
console.log("Successfully retrieved certificate PEM keypair.");
|
||||
return {
|
||||
privateKeyPem: data.Body.toString()
|
||||
}
|
||||
};
|
||||
}).catch((err) => {
|
||||
console.error("There was an error retrieving your certificate PEM keypair:", err.message);
|
||||
return null;
|
||||
|
|
|
@ -49,4 +49,4 @@ module.exports.set = (opts, options, s3) => {
|
|||
console.error("There was an error setting the certificates:", err.message);
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
};
|
|
@ -2,7 +2,7 @@ const path = require("path");
|
|||
|
||||
const tameWild = (wild) => {
|
||||
return wild.replace(/\*/g, "_");
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
|
Loading…
Reference in New Issue