Refactor concat.

This commit is contained in:
David Braun 2019-04-06 09:42:50 -04:00
parent 43b09b0c58
commit 72bf839541
No known key found for this signature in database
GPG key ID: 87EC41ADF710B7E2

View file

@ -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;