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 require("./lib/accounts/set").set(opts, options, s3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
return handlers;
|
return handlers;
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,4 @@ module.exports.setKeypair = (opts, options, s3) => {
|
||||||
console.error("There was an error creating account keypair:", err.message);
|
console.error("There was an error creating account keypair:", err.message);
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
}
|
};
|
|
@ -13,7 +13,7 @@ module.exports.checkKeypair = (opts, options, s3) => {
|
||||||
console.log("Successfully retrieved certificate PEM keypair.");
|
console.log("Successfully retrieved certificate PEM keypair.");
|
||||||
return {
|
return {
|
||||||
privateKeyPem: data.Body.toString()
|
privateKeyPem: data.Body.toString()
|
||||||
}
|
};
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error("There was an error retrieving your certificate PEM keypair:", err.message);
|
console.error("There was an error retrieving your certificate PEM keypair:", err.message);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -49,4 +49,4 @@ module.exports.set = (opts, options, s3) => {
|
||||||
console.error("There was an error setting the certificates:", err.message);
|
console.error("There was an error setting the certificates:", err.message);
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
}
|
};
|
|
@ -2,7 +2,7 @@ const path = require("path");
|
||||||
|
|
||||||
const tameWild = (wild) => {
|
const tameWild = (wild) => {
|
||||||
return wild.replace(/\*/g, "_");
|
return wild.replace(/\*/g, "_");
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue