Skip to content

Commit

Permalink
Fix config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nielm committed Nov 24, 2023
1 parent 08a9378 commit 7ea0e9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudrun-malware-scanner/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const Config = null;
const storage = new Storage({userAgent: `${pkgJson.name}/${pkgJson.version}`});

/**
* Read configuration from JSON configuration file.
* and store in BUCKET_CONFIG global
* Read configuration from JSON configuration file, verify
* and return a Config object
*
* @async
* @param {string} configFile
Expand Down Expand Up @@ -74,7 +74,7 @@ async function readAndVerifyConfig(configFile) {
// Check buckets are specified and exist.
let success = true;
for (let x = 0; x < config.buckets.length; x++) {
const buckets = BUCKET_CONFIG.buckets[x];
const buckets = config.buckets[x];
for (const bucketType of ['unscanned', 'clean', 'quarantined']) {
if ( !(await checkBucketExists(
buckets[bucketType],
Expand Down

0 comments on commit 7ea0e9e

Please sign in to comment.