From 88d0212272e1ff8525a2302722c0d99eed2050a9 Mon Sep 17 00:00:00 2001 From: rizerphe <44440399+rizerphe@users.noreply.github.com> Date: Fri, 10 Nov 2023 07:58:57 +0200 Subject: [PATCH] Remove the loop, now properly --- src/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.ts b/src/cache.ts index 5664b8a..5c77a3c 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -72,7 +72,7 @@ class ExhaustableConsumable { if (next_item) { yield next_item.item; } else { - break; + return; } } }