1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-16 10:19:55 +00:00

Remove extra binding in require.

This commit is contained in:
Calvin Rose 2020-04-19 09:44:02 -05:00
parent 738fd479b3
commit 3c66cab4e7

View File

@ -2242,7 +2242,7 @@
(unless fullpath (error mod-kind))
(if-let [check (in module/cache fullpath)]
check
(if-let [check2 (module/loading fullpath)]
(if (module/loading fullpath)
(error (string "circular dependency " fullpath " detected"))
(do
(def loader (if (keyword? mod-kind) (module/loaders mod-kind) mod-kind))