Diff

util/promise.lua @ 12750:c882d2460bb1

util.promise: Remove line that was supposed to be removed in eb9814372c54
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Oct 2022 17:45:23 +0100
parent 12749:eb9814372c54
child 12975:d10957394a3c
line wrap: on
line diff
--- a/util/promise.lua	Fri Oct 07 17:43:26 2022 +0100
+++ b/util/promise.lua	Fri Oct 07 17:45:23 2022 +0100
@@ -58,7 +58,6 @@
 
 local function new_resolve_functions(p)
 	local function _resolve(v)
-		resolved = true;
 		if is_promise(v) then
 			v:next(new_resolve_functions(p));
 		elseif promise_settle(p, "fulfilled", next_fulfilled, p._pending_on_fulfilled, v) then