aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/host.py.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/host.py.lux18
1 files changed, 8 insertions, 10 deletions
diff --git a/stdlib/source/lux/host.py.lux b/stdlib/source/lux/host.py.lux
index 5405d65a5..ed67b3705 100644
--- a/stdlib/source/lux/host.py.lux
+++ b/stdlib/source/lux/host.py.lux
@@ -149,16 +149,14 @@
(def: (without_none g!temp [noneable? outputT] output)
(-> Code Noneable Code Code)
(if noneable?
- (` (: (Maybe (~ outputT))
- (let [(~ g!temp) (~ output)]
- (if ("python object none?" (~ g!temp))
- #.None
- (#.Some (~ g!temp))))))
- (` (: (~ outputT)
- (let [(~ g!temp) (~ output)]
- (if ("python object none?" (~ g!temp))
- (.error! "None is an invalid value!")
- (~ g!temp)))))))
+ (` (let [(~ g!temp) (~ output)]
+ (if ("python object none?" (~ g!temp))
+ #.None
+ (#.Some (~ g!temp)))))
+ (` (let [(~ g!temp) (~ output)]
+ (if (not ("python object none?" (~ g!temp)))
+ (~ g!temp)
+ (.error! "None is an invalid value!"))))))
(type: Import
(#Class [Text (List Member)])