tasks: remove superfluous update code

This commit is contained in:
Girish Ramakrishnan
2021-09-23 17:39:59 -07:00
parent 8644a63919
commit 3090307c1d
2 changed files with 4 additions and 3 deletions

View File

@@ -712,6 +712,8 @@ async function cleanupCerts() {
const certFilenames = filenames.filter(f => f.endsWith('.cert'));
const now = new Date();
debug('cleanupCerts: start');
for (const certFilename of certFilenames) {
const certFilePath = path.join(paths.NGINX_CERT_DIR, certFilename);
const notAfter = getExpiryDate(certFilePath);
@@ -730,6 +732,8 @@ async function cleanupCerts() {
await blobs.del(`${blobs.CERT_PREFIX}-${fqdn}.csr`);
}
}
debug('cleanupCerts: done');
}
async function checkCerts(options, auditSource, progressCallback) {