Diff

util/promise.lua @ 9546:c93496785022

util.promise: Remove debug print and assert
author Matthew Wild <mwild1@gmail.com>
date Thu, 25 Oct 2018 14:16:14 +0100
parent 9517:b1c6ede17592
child 9548:a83afc22e9d7
line wrap: on
line diff
--- a/util/promise.lua	Wed Oct 24 17:18:34 2018 +0200
+++ b/util/promise.lua	Thu Oct 25 14:16:14 2018 +0100
@@ -51,7 +51,6 @@
 		if resolved then return; end
 		resolved = true;
 		if is_promise(e) then
-			print ("WOAH") assert(false)
 			e:next(new_resolve_functions(p));
 		elseif promise_settle(p, "rejected", next_rejected, p._pending_on_rejected, e) then
 			p.reason = e;