From 22a97a24c9c82785fc2b0135cdb19efb6e8dc904 Mon Sep 17 00:00:00 2001 From: nielm Date: Fri, 24 Nov 2023 22:13:17 +0100 Subject: [PATCH] eslint fix --- cloudrun-malware-scanner/config.js | 6 +++--- cloudrun-malware-scanner/gcs-proxy-server.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudrun-malware-scanner/config.js b/cloudrun-malware-scanner/config.js index 753ce0d..c1ef19a 100644 --- a/cloudrun-malware-scanner/config.js +++ b/cloudrun-malware-scanner/config.js @@ -75,7 +75,7 @@ async function readAndVerifyConfig(configFile) { const buckets = config.buckets[x]; for (const bucketType of ['unscanned', 'clean', 'quarantined']) { if (!(await checkBucketExists( - buckets[bucketType], `config.buckets[${x}].${bucketType}`))) { + buckets[bucketType], `config.buckets[${x}].${bucketType}`))) { success = false; } } @@ -88,7 +88,7 @@ async function readAndVerifyConfig(configFile) { } } if (!(await checkBucketExists( - config.ClamCvdMirrorBucket, 'ClamCvdMirrorBucket'))) { + config.ClamCvdMirrorBucket, 'ClamCvdMirrorBucket'))) { success = false; } @@ -121,7 +121,7 @@ async function checkBucketExists(bucketName, configName) { return true; } catch (e) { logger.fatal(`Error in config: cannot view files in "${configName}" : ${ - bucketName} : ${e.message}`); + bucketName} : ${e.message}`); logger.debug({err: e}); return false; } diff --git a/cloudrun-malware-scanner/gcs-proxy-server.js b/cloudrun-malware-scanner/gcs-proxy-server.js index f66aa5b..cc52a0b 100644 --- a/cloudrun-malware-scanner/gcs-proxy-server.js +++ b/cloudrun-malware-scanner/gcs-proxy-server.js @@ -56,7 +56,7 @@ async function setupGcsReverseProxy(clamCvdMirrorBucket) { statusCode = res.statusCode; } logger.error(`Failed to proxy to GCS for path ${req.url}, returning code ${ - statusCode}: ${err}`); + statusCode}: ${err}`); res.writeHead(statusCode, { 'Content-Type': 'text/plain', });