Commit 6ac6b7ee authored by lianahus's avatar lianahus Committed by Aniket

linter fixed`

parent 80b7a7e2
......@@ -626,9 +626,7 @@ module.exports = class TestTab extends ViewPlugin {
style="background-image: var(--primary);"
onkeyup=${(e) => this.handleTestDirInput(e)}
onchange=${(e) => {
console.log("onchange")
if (!this.createTestFolder.disabled) return // this.handleCreateFolder()
else {
if (this.createTestFolder.disabled) {
this.inputPath.value = this.trimTestDirInput(this.inputPath.value)
if (this.testTabLogic.pathExists(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) })
}
pathExists(path) {
pathExists (path) {
// Checking to ignore the value which contains only whitespaces
if (!path || !(/\S/.test(path))) return
const fileProvider = this.fileManager.fileProviderOf(path.split('/')[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment