remove unneded if else

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 644af32fca
commit 4b20698a94
  1. 7
      src/app/debugger/SolidityLocals.js

@ -40,7 +40,9 @@ class DebuggerSolidityLocals {
self.traceManager.getCurrentCalledAddressAt], self.traceManager.getCurrentCalledAddressAt],
self.parent.currentStepIndex, self.parent.currentStepIndex,
(error, result) => { (error, result) => {
if (!error) { if (error) {
return console.log(error)
}
var stack = result[0].value var stack = result[0].value
var memory = result[1].value var memory = result[1].value
try { try {
@ -56,9 +58,6 @@ class DebuggerSolidityLocals {
} catch (e) { } catch (e) {
self.event.trigger('solidityLocalsMessage', [e.message]) self.event.trigger('solidityLocalsMessage', [e.message])
} }
} else {
console.log(error)
}
}) })
} }

Loading…
Cancel
Save