Clean up Sonar issues and lint warnings
This commit is contained in:
parent
b9aa6e0073
commit
7ffc454e47
6 changed files with 124 additions and 89 deletions
|
|
@ -6,9 +6,9 @@ handleSIGINT();
|
|||
console.log('hello');
|
||||
console.error('hello error');
|
||||
try {
|
||||
let i = await prompt(); // SIGINT no longer handled if this is executed
|
||||
i = await prompt(); // SIGINT no longer handled if this is executed
|
||||
console.log('value:', i);
|
||||
const first = await prompt(); // SIGINT no longer handled if this is executed
|
||||
const second = await prompt(); // SIGINT no longer handled if this is executed
|
||||
console.log('values:', first, second);
|
||||
setTimeout(() => console.log('timeout 3s'), 3000);
|
||||
} catch (e) {
|
||||
process.exitCode ||= 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue