From 72bf83954153edb93daac8a09b41fdab7fd6b587 Mon Sep 17 00:00:00 2001 From: David Braun Date: Sat, 6 Apr 2019 09:42:50 -0400 Subject: [PATCH] Refactor `concat`. --- lib/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 3125db6..4d07c13 100644 --- a/lib/index.js +++ b/lib/index.js @@ -130,15 +130,13 @@ const Channel = function(length = 0) { */ if (Channel.isChannel(arg)) { - await arg.forEach(value => { - output.push(value); - }); + await arg.forEach(output.push); } else { await output.push(arg); } } - output.close(); + await output.close(); })(); return output;