Skip to content

Commit

Permalink
core/asm: remove unused return value (ethereum#27272)
Browse files Browse the repository at this point in the history
  • Loading branch information
joohhnnn authored and devopsbo3 committed Nov 10, 2023
1 parent aff04e0 commit a0c2037
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/asm/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,12 @@ func (c *Compiler) compileLine() error {
}

// compileNumber compiles the number to bytes
func (c *Compiler) compileNumber(element token) (int, error) {
func (c *Compiler) compileNumber(element token) {
num := math.MustParseBig256(element.text).Bytes()
if len(num) == 0 {
num = []byte{0}
}
c.pushBin(num)
return len(num), nil
}

// compileElement compiles the element (push & label or both)
Expand Down

0 comments on commit a0c2037

Please sign in to comment.