From 14a337118fa183f07063a85d34a28f787e8bddd4 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Mon, 15 Mar 2021 13:56:01 +0100 Subject: [PATCH] Fixed linting --- apps/remix-ide/src/app/panels/tab-proxy.js | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/remix-ide/src/app/panels/tab-proxy.js b/apps/remix-ide/src/app/panels/tab-proxy.js index 4215333ac3..5af0c13dd9 100644 --- a/apps/remix-ide/src/app/panels/tab-proxy.js +++ b/apps/remix-ide/src/app/panels/tab-proxy.js @@ -72,16 +72,16 @@ export class TabProxy extends Plugin { if (this._handlers[path]) { this._view.filetabs.activateTab(path) - return - } + return + } this.addTab(path, '', () => { - this.fileManager.open(file) - this.event.emit('openFile', file) - }, - () => { - this.fileManager.closeFile(file) - this.event.emit('closeFile', file) - }) + this.fileManager.open(file) + this.event.emit('openFile', file) + }, + () => { + this.fileManager.closeFile(file) + this.event.emit('closeFile', file) + }) } }) @@ -89,8 +89,8 @@ export class TabProxy extends Plugin { const workspace = this.fileManager.getCurrentWorkspace() if (workspace) { - if (isFolder) { - for (const tab of this.loadedTabs) { + if (isFolder) { + for (const tab of this.loadedTabs) { if (tab.name.indexOf(workspace + '/' + oldName + '/') === 0) { const newTabName = workspace + '/' + newName + tab.name.slice(workspace + '/' + oldName.length, tab.name.length) this.renameTab(tab.name, newTabName) @@ -105,12 +105,12 @@ export class TabProxy extends Plugin { for (const tab of this.loadedTabs) { if (tab.name.indexOf(this.fileManager.mode + '/' + oldName + '/') === 0) { const newTabName = this.fileManager.mode + '/' + newName + tab.name.slice(this.fileManager.mode + '/' + oldName.length, tab.name.length) - this.renameTab(tab.name, newTabName) + this.renameTab(tab.name, newTabName) + } } + return } - return - } - // should change the tab title too + // should change the tab title too this.renameTab(this.fileManager.mode + '/' + oldName, workspace + '/' + newName) } })