Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nielm committed Nov 24, 2023
1 parent f9f642c commit 22a97a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cloudrun-malware-scanner/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -88,7 +88,7 @@ async function readAndVerifyConfig(configFile) {
}
}
if (!(await checkBucketExists(
config.ClamCvdMirrorBucket, 'ClamCvdMirrorBucket'))) {
config.ClamCvdMirrorBucket, 'ClamCvdMirrorBucket'))) {
success = false;
}

Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion cloudrun-malware-scanner/gcs-proxy-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down

0 comments on commit 22a97a2

Please sign in to comment.