From 455b0a0608a844e4bdfd47b87cc03beca0e2ebd3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 13 Jan 2023 00:47:54 +0300 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- Promise.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Promise.js b/Promise.js index 64a3955..24391fc 100644 --- a/Promise.js +++ b/Promise.js @@ -194,8 +194,8 @@ module.packed = || res[0] instanceof Promise } // compensate for the outer .flat()... - return (has_promise - && res instanceof Array) ? + // NOTE: at this point res is always an array... + return has_promise ? // NOTE: since we are already in a promise // grouping things here is not a big // deal, however this is needed to link