aboutsummaryrefslogtreecommitdiffstats
path: root/core/asm
diff options
context:
space:
mode:
Diffstat (limited to 'core/asm')
-rw-r--r--core/asm/asm.go5
-rw-r--r--core/asm/compiler.go5
2 files changed, 2 insertions, 8 deletions
diff --git a/core/asm/asm.go b/core/asm/asm.go
index 5fe827e7c..ce22f93f9 100644
--- a/core/asm/asm.go
+++ b/core/asm/asm.go
@@ -114,10 +114,7 @@ func PrintDisassembled(code string) error {
fmt.Printf("%06v: %v\n", it.PC(), it.Op())
}
}
- if err := it.Error(); err != nil {
- return err
- }
- return nil
+ return it.Error()
}
// Return all disassembled EVM instructions in human-readable format.
diff --git a/core/asm/compiler.go b/core/asm/compiler.go
index b2c85375c..318c4e4d8 100644
--- a/core/asm/compiler.go
+++ b/core/asm/compiler.go
@@ -237,10 +237,7 @@ func (c *Compiler) pushBin(v interface{}) {
// isPush returns whether the string op is either any of
// push(N).
func isPush(op string) bool {
- if op == "push" {
- return true
- }
- return false
+ return op == "push"
}
// isJump returns whether the string op is jump(i)