diff options
Diffstat (limited to '')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/r/case.jvm.lux | 6 | ||||
-rw-r--r-- | new-luxc/source/luxc/lang/translation/ruby/case.jvm.lux | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/new-luxc/source/luxc/lang/translation/r/case.jvm.lux b/new-luxc/source/luxc/lang/translation/r/case.jvm.lux index 6ceae3842..8a61f0263 100644 --- a/new-luxc/source/luxc/lang/translation/r/case.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/r/case.jvm.lux @@ -138,9 +138,9 @@ (^code (<pm> (~ [_ (#.Nat idx)]))) (meta/wrap ($_ r.then (r.set! $temp (runtimeT.sum//get cursor-top (r.int (:! Int idx)) <flag>)) - (r.if (r.not (r.= r.null (@@ $temp))) - (push-cursor! (@@ $temp)) - fail-pm!)))) + (r.if (r.= r.null (@@ $temp)) + fail-pm! + (push-cursor! (@@ $temp)))))) (["lux case variant left" r.null] ["lux case variant right" (r.string "")]) diff --git a/new-luxc/source/luxc/lang/translation/ruby/case.jvm.lux b/new-luxc/source/luxc/lang/translation/ruby/case.jvm.lux index 7f951a9dc..d76b2a757 100644 --- a/new-luxc/source/luxc/lang/translation/ruby/case.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/ruby/case.jvm.lux @@ -123,9 +123,9 @@ (^template [<pm> <flag>] (^code (<pm> (~ [_ (#.Nat idx)]))) (meta/wrap (ruby.block! (list (ruby.set! (list "temp") (runtimeT.sum//get cursor-top (ruby.int (:! Int idx)) <flag>)) - (ruby.if! (ruby.not (ruby.= ruby.nil "temp")) - (push-cursor! "temp") - (ruby.raise pm-error)))))) + (ruby.if! (ruby.= ruby.nil "temp") + (ruby.raise pm-error) + (push-cursor! "temp")))))) (["lux case variant left" ruby.nil] ["lux case variant right" (ruby.string "")]) |