From d8ccbca3fdbfb5990b46ef6876a5d71b9b42fb10 Mon Sep 17 00:00:00 2001 From: Damion Dooley Date: Wed, 7 Sep 2022 06:26:33 -0700 Subject: [PATCH] linting --- lib/DataHarmonizer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/DataHarmonizer.js b/lib/DataHarmonizer.js index bada969b..68c52b00 100644 --- a/lib/DataHarmonizer.js +++ b/lib/DataHarmonizer.js @@ -375,12 +375,10 @@ class DataHarmonizer { async openFile(file) { try { let contentBuffer = await readFileAsync(file); - if (file.type === "application/json") { + if (file.type === 'application/json') { console.log(JSON.parse(contentBuffer)); this.loadDataObjects(JSON.parse(contentBuffer)); - } - else - this.loadSpreadsheetData(contentBuffer); + } else this.loadSpreadsheetData(contentBuffer); } catch (err) { console.log(err); }