From 7ab2f207c68fd850d5df2365828dd846d6be8b97 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 22 Mar 2021 20:06:45 +0530 Subject: [PATCH] linting fix --- apps/remix-ide/src/app/tabs/test-tab.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 796c633345..57dde5121a 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -552,18 +552,17 @@ module.exports = class TestTab extends ViewPlugin { updateDirList (keycode = 'none') { const presentOptions = this.uiPathList.querySelectorAll('option') // Initial load - if (keycode === 'none' ) { - for (var o of presentOptions) o.remove() + if (keycode === 'none') { + for (const o of presentOptions) o.remove() this.testTabLogic.dirList('/').then((options) => { options.forEach((path) => this.uiPathList.appendChild(yo``)) }) } else if (this.inputPath.value && this.inputPath.value.endsWith('/')) { - for (var o of presentOptions) o.remove() + for (const o of presentOptions) o.remove() this.testTabLogic.dirList(this.inputPath.value).then((options) => { options.forEach((path) => this.uiPathList.appendChild(yo``)) }) - } - else { + } else { let matchFound = false for (var option of presentOptions) { if (option.innerHTML.startsWith(this.inputPath.value)) matchFound = true