Commit ef2034a4 authored by yann300's avatar yann300

linting

parent 8d44d31c
...@@ -159,7 +159,7 @@ export class CodeManager { ...@@ -159,7 +159,7 @@ export class CodeManager {
if (values) { if (values) {
for (const value of values) { for (const value of values) {
if (value.address === address) { 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 { ...@@ -168,7 +168,7 @@ export class CodeManager {
if (values) { if (values) {
for (const value of values) { for (const value of values) {
if (value.address === address) { if (value.address === address) {
outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address }) outOfGasInstructionIndexes.push({ instructionIndex: this.getInstructionIndex(address, value.index), address })
} }
} }
} }
......
...@@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => { ...@@ -28,7 +28,7 @@ export const AssemblyItems = ({ registerEvent }) => {
} }
}, [assemblyItems.opCodes.index]) }, [assemblyItems.opCodes.index])
let clearItem = (currentItem) => { const clearItem = (currentItem) => {
if (currentItem) { if (currentItem) {
currentItem.removeAttribute('selected') currentItem.removeAttribute('selected')
currentItem.removeAttribute('style') currentItem.removeAttribute('style')
...@@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => { ...@@ -41,7 +41,7 @@ export const AssemblyItems = ({ registerEvent }) => {
const clearItems = () => { const clearItems = () => {
clearItem(refs.current[selectedItem] ? refs.current[selectedItem] : null) clearItem(refs.current[selectedItem] ? refs.current[selectedItem] : null)
clearItem(refs.current[nextSelectedItem] ? refs.current[nextSelectedItem] : null) clearItem(refs.current[nextSelectedItem] ? refs.current[nextSelectedItem] : null)
returnInstructionIndexes.map((index) => { returnInstructionIndexes.map((index) => {
if (index < 0) return if (index < 0) return
clearItem(refs.current[index] ? refs.current[index] : null) clearItem(refs.current[index] ? refs.current[index] : null)
......
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