Skip to content

Commit

Permalink
Revert "Fix preserving stdin's pause state (#210)"
Browse files Browse the repository at this point in the history
This reverts commit 77ccc1e.
  • Loading branch information
sindresorhus committed Jun 27, 2022
1 parent 1c24e0f commit f4e03ea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions utilities.js
Expand Up @@ -79,17 +79,7 @@ export class StdinDiscarder {
return;
}

const {stdin} = process;
const wasPaused = stdin.isPaused();

this.#rl.close();

// Keep stdin unpaused across the readline close if it is already
// unpaused. See #209 for more details.
if (!wasPaused && stdin.isPaused()) {
stdin.resume();
}

this.#rl = undefined;
}
}

0 comments on commit f4e03ea

Please sign in to comment.