Skip to content

Commit

Permalink
Fix: Command parsing hangs under unit test (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonochromeChameleon authored Feb 7, 2022
1 parent 893e8b8 commit cb88427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ try {
const readStdin = async () => {
const {stdin} = process
let result
if (stdin.isTTY) return result
if (stdin.isTTY || stdin.isTTY === undefined) return result
result = ''
stdin.setEncoding('utf8')
for await (const chunk of stdin) {
Expand Down

0 comments on commit cb88427

Please sign in to comment.