Code review improvements.

This commit is contained in:
Cyrille 2019-05-09 08:36:47 +01:00
parent 8391d11d49
commit a59a9e137e
5 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ module.exports.create = (createOptions) => {
return require("./lib/accounts/set").set(opts, options, s3);
}
}
}
};
return handlers;

View File

@ -19,4 +19,4 @@ module.exports.setKeypair = (opts, options, s3) => {
console.error("There was an error creating account keypair:", err.message);
return null;
});
}
};

View File

@ -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;

View File

@ -49,4 +49,4 @@ module.exports.set = (opts, options, s3) => {
console.error("There was an error setting the certificates:", err.message);
throw err;
});
}
};

View File

@ -2,7 +2,7 @@ const path = require("path");
const tameWild = (wild) => {
return wild.replace(/\*/g, "_");
}
};
module.exports = {