linting fix

pull/1176/head
aniket-engg 4 years ago committed by Aniket
parent d330b6ff79
commit 7ab2f207c6
  1. 7
      apps/remix-ide/src/app/tabs/test-tab.js

@ -553,17 +553,16 @@ module.exports = class TestTab extends ViewPlugin {
const presentOptions = this.uiPathList.querySelectorAll('option') const presentOptions = this.uiPathList.querySelectorAll('option')
// Initial load // Initial load
if (keycode === 'none') { if (keycode === 'none') {
for (var o of presentOptions) o.remove() for (const o of presentOptions) o.remove()
this.testTabLogic.dirList('/').then((options) => { this.testTabLogic.dirList('/').then((options) => {
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`)) options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`))
}) })
} else if (this.inputPath.value && this.inputPath.value.endsWith('/')) { } 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) => { this.testTabLogic.dirList(this.inputPath.value).then((options) => {
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`)) options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`))
}) })
} } else {
else {
let matchFound = false let matchFound = false
for (var option of presentOptions) { for (var option of presentOptions) {
if (option.innerHTML.startsWith(this.inputPath.value)) matchFound = true if (option.innerHTML.startsWith(this.inputPath.value)) matchFound = true

Loading…
Cancel
Save