mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-23 23:12:04 +03:00
naive: remove unnecessary checks
This commit is contained in:
parent
26226916a0
commit
f277eaadb2
@ -475,7 +475,6 @@
|
||||
++ w-point-fx
|
||||
|* [fun=$-([ship point *] (unit [effects point])) =ship rest=*]
|
||||
^- (unit [effects ^state])
|
||||
?: (gth (ship-rank ship) 2) ~ :: ensure get-point won't crash
|
||||
=/ point (get-point state ship)
|
||||
?~ point ~
|
||||
?> ?=(%l2 -.u.point)
|
||||
@ -487,7 +486,6 @@
|
||||
++ w-point
|
||||
|* [fun=$-([ship point *] (unit point)) =ship rest=*]
|
||||
^- (unit [effects ^state])
|
||||
?: (gth (ship-rank ship) 2) ~ :: ensure get-point won't crash
|
||||
=/ point (get-point state ship)
|
||||
?~ point ~
|
||||
?> ?=(%l2 -.u.point)
|
||||
|
Loading…
Reference in New Issue
Block a user