From 8b6f090a4799f88e05262591edf528dae12a58b8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 5 Apr 2022 22:49:05 +0200 Subject: fix(util): add if when loading plugin --- fnl/util.fnl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fnl/util.fnl') 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)))) -- cgit v1.2.3-70-g09d2