linter fixed`

pull/1176/head
lianahus 4 years ago committed by Aniket
parent 80b7a7e299
commit 6ac6b7ee2c
  1. 4
      apps/remix-ide/src/app/tabs/test-tab.js
  2. 2
      apps/remix-ide/src/app/tabs/testTab/testTab.js

@ -626,9 +626,7 @@ module.exports = class TestTab extends ViewPlugin {
style="background-image: var(--primary);" style="background-image: var(--primary);"
onkeyup=${(e) => this.handleTestDirInput(e)} onkeyup=${(e) => this.handleTestDirInput(e)}
onchange=${(e) => { onchange=${(e) => {
console.log("onchange") if (this.createTestFolder.disabled) {
if (!this.createTestFolder.disabled) return // this.handleCreateFolder()
else {
this.inputPath.value = this.trimTestDirInput(this.inputPath.value) this.inputPath.value = this.trimTestDirInput(this.inputPath.value)
if (this.testTabLogic.pathExists(this.inputPath.value)) { if (this.testTabLogic.pathExists(this.inputPath.value)) {
this.inputPath.value = this.trimTestDirInput(this.inputPath.value) this.inputPath.value = this.trimTestDirInput(this.inputPath.value)

@ -21,7 +21,7 @@ class TestTabLogic {
fileProvider.exists(path, (e, res) => { if (!res) fileProvider.createDir(path) }) fileProvider.exists(path, (e, res) => { if (!res) fileProvider.createDir(path) })
} }
pathExists(path) { pathExists (path) {
// Checking to ignore the value which contains only whitespaces // Checking to ignore the value which contains only whitespaces
if (!path || !(/\S/.test(path))) return if (!path || !(/\S/.test(path))) return
const fileProvider = this.fileManager.fileProviderOf(path.split('/')[0]) const fileProvider = this.fileManager.fileProviderOf(path.split('/')[0])

Loading…
Cancel
Save