Skip to content

Commit c79b384

Browse files
committed
refactor: remove excessive code from channel implementation
1 parent 723a8e7 commit c79b384

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/channel.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ async function _bufferedSlide(ch: Channel) {
177177
take(val);
178178
}
179179
}
180-
if (!ch.puts.empty() && !ch.buf.full()) {
181-
let put = ch.puts.shift();
182-
ch.buf.push(put);
183-
put.resolve();
184-
}
185180
}
186181
while (!ch.puts.empty() && !ch.buf.full()) {
187182
let put = ch.puts.shift();

0 commit comments

Comments
 (0)