Simplified some code
This commit is contained in:
parent
736d018152
commit
2623e80a93
3 changed files with 7 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue