From 5d6462b9aa36291dedda7ccba5c2a2a6b02d0d77 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 5 Jan 2023 04:09:55 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- Promise.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Promise.js b/Promise.js index 8d160c6..e3e9275 100644 --- a/Promise.js +++ b/Promise.js @@ -856,8 +856,6 @@ object.Constructor('IterableSequentialPromise', IterablePromise, { var repack = function(list){ var res = [] for(var [i, e] of list.entries()){ - // XXX check for .then(..) instead??? - //if(e instanceof Promise if(e.then // skip last promise -- nothing to wrap... && i < list.length-1){ @@ -877,12 +875,9 @@ object.Constructor('IterableSequentialPromise', IterablePromise, { : list list = list instanceof Array ? repack(list) - // XXX check for .then(..) instead??? - //: list instanceof Promise ? : list.then ? list.then(repack) : list - return handler ? this.__handle(list, handler, onerror) : list },