From 9b4d9b60c50284e3d6c60be2f243c4b0cca6f101 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 29 Jun 2021 15:07:20 +0200 Subject: [PATCH] linting --- libs/remix-debug/src/code/codeManager.ts | 4 ++-- .../debugger-ui/src/lib/vm-debugger/assembly-items.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-debug/src/code/codeManager.ts b/libs/remix-debug/src/code/codeManager.ts index 390c988eed..f0b38ea3d9 100644 --- a/libs/remix-debug/src/code/codeManager.ts +++ b/libs/remix-debug/src/code/codeManager.ts @@ -159,7 +159,7 @@ export class CodeManager { if (values) { for (const value of values) { if (value.address === address) { - returnInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address }) + returnInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address }) } } } @@ -168,7 +168,7 @@ export class CodeManager { if (values) { for (const value of values) { if (value.address === address) { - outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address }) + outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address }) } } } diff --git a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx index af6c061e6c..8b0ed07d9c 100644 --- a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/assembly-items.tsx @@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => { } }, [assemblyItems.opCodes.index]) - let clearItem = (currentItem) => { + const clearItem = (currentItem) => { if (currentItem) { currentItem.removeAttribute('selected') currentItem.removeAttribute('style') @@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => { const clearItems = () => { clearItem(refs.current[selectedItem] ? refs.current[selectedItem] : null) clearItem(refs.current[nextSelectedItem] ? refs.current[nextSelectedItem] : null) - + returnInstructionIndexes.map((index) => { if (index < 0) return clearItem(refs.current[index] ? refs.current[index] : null)