From e57a455393f4f695d4e972f4d70f0d46544416fe Mon Sep 17 00:00:00 2001 From: LianaHus Date: Mon, 2 Nov 2020 16:20:20 +0100 Subject: [PATCH] style fixes --- apps/remix-ide/src/app/editor/SourceHighlighters.js | 1 + apps/remix-ide/src/app/editor/contextualListener.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/editor/SourceHighlighters.js b/apps/remix-ide/src/app/editor/SourceHighlighters.js index 412288aad6..1cb6a15576 100644 --- a/apps/remix-ide/src/app/editor/SourceHighlighters.js +++ b/apps/remix-ide/src/app/editor/SourceHighlighters.js @@ -25,6 +25,7 @@ class SourceHighlighters { } } + // highlights all locations for @from plugin highlightAllFrom (from) { try { if (!this.highlighters[from]) return diff --git a/apps/remix-ide/src/app/editor/contextualListener.js b/apps/remix-ide/src/app/editor/contextualListener.js index 5bacee4fc7..d4d2c5a534 100644 --- a/apps/remix-ide/src/app/editor/contextualListener.js +++ b/apps/remix-ide/src/app/editor/contextualListener.js @@ -123,7 +123,7 @@ class ContextualListener extends Plugin { } _highlightInternal (position, node) { - if (node.nodeType == 'Block') return + if (node.nodeType === 'Block') return let lastCompilationResult = this._deps.compilersArtefacts['__last'] if (lastCompilationResult && lastCompilationResult.languageversion.indexOf('soljson') === 0) { let lineColumn = this._deps.offsetToLineColumnConverter.offsetToLineColumn(position, position.file, lastCompilationResult.getSourceCode().sources, lastCompilationResult.getAsts())