Skip to content

Commit ced78a0

Browse files
committed
lint: remove assignment inside expression
1 parent bf1967f commit ced78a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/terminal.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,8 +1759,9 @@ export class Terminal implements ITerminalCore {
17591759

17601760
// Read all pending responses from the WASM terminal
17611761
// Multiple responses can be queued if a single write() contained multiple queries
1762-
let response: string | null;
1763-
while ((response = this.wasmTerm.readResponse()) !== null) {
1762+
while (true) {
1763+
const response = this.wasmTerm.readResponse();
1764+
if (response === null) break;
17641765
// Send response back to the PTY via onData
17651766
// This is the same path as user keyboard input
17661767
this.dataEmitter.fire(response);

0 commit comments

Comments
 (0)