From 0d743c8d41ee95b5a38ca31a4252a037ec128502 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 7 Oct 2020 23:41:53 +0200 Subject: [PATCH] Deep Scan Medium Severity --- src/DailyFiles.js | 4 ++-- src/FileCloud.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DailyFiles.js b/src/DailyFiles.js index f28017eb2..222ccc995 100644 --- a/src/DailyFiles.js +++ b/src/DailyFiles.js @@ -150,7 +150,7 @@ function newDailyFiles() { function createFileCursors() { try { /* Now we will get the daily files */ - for (i = 0; i < dailyFilePeriods.length; i++) { + for (let i = 0; i < dailyFilePeriods.length; i++) { let periodTime = dailyFilePeriods[i][0] let periodName = dailyFilePeriods[i][1] @@ -198,7 +198,7 @@ function newDailyFiles() { function loadThemAll() { try { - for (i = 0; i < dailyFilePeriods.length; i++) { + for (let i = 0; i < dailyFilePeriods.length; i++) { let periodTime = dailyFilePeriods[i][0] let periodName = dailyFilePeriods[i][1] diff --git a/src/FileCloud.js b/src/FileCloud.js index cfc819f98..a75095be6 100644 --- a/src/FileCloud.js +++ b/src/FileCloud.js @@ -139,7 +139,7 @@ function newFileCloud () { let data if (err && err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) { - if (err.code === 'BlobNotFound' | err.code === 'FileNotFound' | err.code === 'ParentNotFound' | err.code === 'The specified key does not exist.') { + if (err.code === 'BlobNotFound' || err.code === 'FileNotFound' || err.code === 'ParentNotFound' || err.code === 'The specified key does not exist.') { let customErr = { result: GLOBAL.CUSTOM_FAIL_RESPONSE.result, message: 'File does not exist.'