summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/util.fnl5
1 files changed, 2 insertions, 3 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index ae52bac..eb706cc 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -3,8 +3,7 @@
(defn load-plugin [name]
(let [(ok? val-or-err) (pcall require name)]
- (when ok?
- (val-or-err))
- (when (not ok?)
+ (if ok?
+ (val-or-err)
(print "Could not load config: " val-or-err))))