Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Sep 9, 2019
1 parent 6011fee commit c67f6ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/evm/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export default class Interpreter {
* Get info for an opcode from VM's list of opcodes.
*/
lookupOpInfo(op: number, full: boolean = false): Opcode {
const opcode = this._vm._opcodes[op] ? this._vm._opcodes[op] : { name: 'INVALID', fee: 0, isAsync: false }
const opcode = this._vm._opcodes[op]
? this._vm._opcodes[op]
: { name: 'INVALID', fee: 0, isAsync: false }

if (full) {
let name = opcode.name
Expand Down

0 comments on commit c67f6ee

Please sign in to comment.