Simplified some code

This commit is contained in:
Julien Dessaux 2021-10-06 00:08:14 +02:00
parent 736d018152
commit 2623e80a93
3 changed files with 7 additions and 17 deletions

View file

@ -99,9 +99,8 @@ func (p *Pointer) Redirect(c int) bool {
case 'r':
p.Reverse()
case 'x':
dy := p.ss.head.Pop()
dx := p.ss.head.Pop()
p.RedirectTo(dx, dy)
p.dy = p.ss.head.Pop()
p.dx = p.ss.head.Pop()
default:
return false
}