Refactor concat
.
This commit is contained in:
parent
43b09b0c58
commit
72bf839541
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue