Skip to content

Commit

Permalink
fix: drop input timeout
Browse files Browse the repository at this point in the history
`snyk test --json` may take a while to run, so having a timeout will end the snyk2spdx process early.
  • Loading branch information
lili2311 committed May 27, 2021
1 parent 502cf11 commit dc3f489
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/get-input-data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export async function readInputFromStdin(): Promise<string> {
return new Promise<string>((resolve, reject) => {
setTimeout(() => reject(new Error('No input detected')), 100);
let jsonString = '';
process.stdin.setEncoding('utf8');
process.stdin.on('readable', () => {
Expand Down

0 comments on commit dc3f489

Please sign in to comment.