refactor; remove unneded else

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent cd6061a4c7
commit 007b4ce5fb
  1. 7
      src/app/debugger/debuggerUI/VmDebugger.js

@ -186,7 +186,9 @@ class VmDebuggerLogic {
if (self._parent.currentStepIndex !== index) return if (self._parent.currentStepIndex !== index) return
if (!self.storageResolver) return if (!self.storageResolver) return
if (index === self.traceLength - 1) { if (index !== self.traceLength - 1) {
return self.event.trigger('traceLengthUpdate', [{}])
}
var storageJSON = {} var storageJSON = {}
for (var k in self.addresses) { for (var k in self.addresses) {
var address = self.addresses[k] var address = self.addresses[k]
@ -198,9 +200,6 @@ class VmDebuggerLogic {
} }
}) })
} }
} else {
self.event.trigger('traceLengthUpdate', [{}])
}
}) })
} }
} }

Loading…
Cancel
Save