Skip to content

Commit c0feb19

Browse files
committed
A nil base means we can still return loaded
1 parent 143b595 commit c0feb19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fnl/nfnl/module.fnl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
The base value defaults to {}, an empty table."
5959

6060
(let [loaded (. package.loaded mod-name)]
61-
(if (and (= (type loaded) (type base))
61+
(if (and (or (= (type loaded) (type base))
62+
(= nil base))
6263
(not= nil loaded))
6364
loaded
6465
(or base {}))))

lua/nfnl/module.lua

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)