Skip to content

Commit ab67481

Browse files
committed
fix eslint errors
1 parent 1b611e6 commit ab67481

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

backend/internal/certificate.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,22 @@ const internalCertificate = {
147147
// 4. Request cert
148148
return internalCertificate.requestLetsEncryptCloudFlareDnsSsl(certificate, data.meta.cloudflare_token);
149149
})
150-
.then(internalNginx.reload)
151-
.then(() => {
152-
// 6. Re-instate previously disabled hosts
153-
return internalCertificate.enableInUseHosts(in_use_result);
154-
})
155-
.then(() => {
156-
return certificate;
157-
})
158-
.catch((err) => {
159-
// In the event of failure, revert things and throw err back
160-
return internalCertificate.enableInUseHosts(in_use_result)
161-
.then(internalNginx.reload)
162-
.then(() => {
163-
throw err;
164-
});
165-
});
150+
.then(internalNginx.reload)
151+
.then(() => {
152+
// 6. Re-instate previously disabled hosts
153+
return internalCertificate.enableInUseHosts(in_use_result);
154+
})
155+
.then(() => {
156+
return certificate;
157+
})
158+
.catch((err) => {
159+
// In the event of failure, revert things and throw err back
160+
return internalCertificate.enableInUseHosts(in_use_result)
161+
.then(internalNginx.reload)
162+
.then(() => {
163+
throw err;
164+
});
165+
});
166166
} else {
167167
// 3. Generate the LE config
168168
return internalNginx.generateLetsEncryptRequestConfig(certificate)
@@ -784,7 +784,7 @@ const internalCertificate = {
784784
let storeKey = 'echo "dns_cloudflare_api_token = ' + apiToken + '" > ' + tokenLoc;
785785

786786
let cmd =
787-
storeKey + " && " +
787+
storeKey + ' && ' +
788788
certbot_command + ' certonly --non-interactive ' +
789789
'--cert-name "npm-' + certificate.id + '" ' +
790790
'--agree-tos ' +
@@ -799,9 +799,9 @@ const internalCertificate = {
799799
}
800800

801801
return utils.exec(cmd).then((result) => {
802-
logger.info(result);
803-
return result;
804-
});
802+
logger.info(result);
803+
return result;
804+
});
805805
},
806806

807807

0 commit comments

Comments
 (0)