mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: remove an unnecessary line
This commit is contained in:
@ -3913,7 +3913,6 @@ fn (p mut Parser) return_st() {
|
|||||||
tmp := p.get_tmp()
|
tmp := p.get_tmp()
|
||||||
ret := p.cgen.cur_line.right(ph)
|
ret := p.cgen.cur_line.right(ph)
|
||||||
typ := expr_type.replace('Option_', '')
|
typ := expr_type.replace('Option_', '')
|
||||||
p.cgen.cur_line = '$expr_type $tmp = OPTION_CAST($typ)($ret);'
|
|
||||||
p.cgen.resetln('$expr_type $tmp = OPTION_CAST($expr_type)($ret);')
|
p.cgen.resetln('$expr_type $tmp = OPTION_CAST($expr_type)($ret);')
|
||||||
p.gen('return opt_ok(&$tmp, sizeof($typ))')
|
p.gen('return opt_ok(&$tmp, sizeof($typ))')
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user