mirror of
https://github.com/janet-lang/janet
synced 2025-09-02 10:58:03 +00:00
Remove extra binding in require.
This commit is contained in:
@@ -2242,7 +2242,7 @@
|
|||||||
(unless fullpath (error mod-kind))
|
(unless fullpath (error mod-kind))
|
||||||
(if-let [check (in module/cache fullpath)]
|
(if-let [check (in module/cache fullpath)]
|
||||||
check
|
check
|
||||||
(if-let [check2 (module/loading fullpath)]
|
(if (module/loading fullpath)
|
||||||
(error (string "circular dependency " fullpath " detected"))
|
(error (string "circular dependency " fullpath " detected"))
|
||||||
(do
|
(do
|
||||||
(def loader (if (keyword? mod-kind) (module/loaders mod-kind) mod-kind))
|
(def loader (if (keyword? mod-kind) (module/loaders mod-kind) mod-kind))
|
||||||
|
Reference in New Issue
Block a user