From 3c66cab4e777aba291ab5cf7641c10619a6cc2d9 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 19 Apr 2020 09:44:02 -0500 Subject: [PATCH] Remove extra binding in require. --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index f0cfeebf..196b1330 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -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))