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.'