Fix #9 - Variable definition was incorrectly scoped

This commit is contained in:
Jamie Curnow 2018-09-03 09:21:12 +10:00
parent 5dd723a864
commit 02b4def04a

View File

@ -409,9 +409,9 @@ const internalCertificate = {
* @returns {Promise}
*/
writeCustomCert: certificate => {
return new Promise((resolve, reject) => {
let dir = '/data/custom_ssl/npm-' + certificate.id;
let dir = '/data/custom_ssl/npm-' + certificate.id;
return new Promise((resolve, reject) => {
if (certificate.provider === 'letsencrypt') {
reject(new Error('Refusing to write letsencrypt certs here'));
return;