core/asm: remove unused return value (#27272)

This commit is contained in:
joohhnnn 2023-05-16 16:14:04 +08:00 committed by devopsbo3
parent aff04e0ac3
commit a0c2037a67

View file

@ -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)