From 0f0ca921e9579af368d369b0d736d83a3792bef1 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 19 May 2020 08:49:10 +0000 Subject: [PATCH] Removed async/await --- apps/remix-ide/src/app/editor/sourceHighlighter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/editor/sourceHighlighter.js b/apps/remix-ide/src/app/editor/sourceHighlighter.js index cf30861bed..8b45081829 100644 --- a/apps/remix-ide/src/app/editor/sourceHighlighter.js +++ b/apps/remix-ide/src/app/editor/sourceHighlighter.js @@ -31,7 +31,7 @@ class SourceHighlighter { } } - async currentSourceLocationFromfileName (lineColumnPos, filePath, style) { + currentSourceLocationFromfileName (lineColumnPos, filePath, style) { if (this.statementMarker) this._deps.editor.removeMarker(this.statementMarker, this.source) if (this.fullLineMarker) this._deps.editor.removeMarker(this.fullLineMarker, this.source) this.statementMarker = null @@ -40,7 +40,7 @@ class SourceHighlighter { if (lineColumnPos) { this.source = filePath if (this._deps.config.get('currentFile') !== this.source) { - await this._deps.fileManager.switchFile(this.source) + this._deps.fileManager.switchFile(this.source) } const css = csjs`