Skip to content

Commit

Permalink
refactor(csp): update destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 14, 2020
1 parent 3524982 commit 5a4ad57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/csp/src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,7 @@ export class Channel<T> implements IReadWriteableChannel<T> {
protected async process() {
if (!this.isBusy) {
this.isBusy = true;
const reads = this.reads;
const writes = this.writes;
const buf = this.buf;
const txbuf = this.txbuf;
const { buf, txbuf, reads, writes } = this;
let doProcess: any = true;
while (doProcess) {
while (reads.length && (txbuf.length || buf.length)) {
Expand Down

0 comments on commit 5a4ad57

Please sign in to comment.