Skip to content

Commit

Permalink
Null vs Undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Feb 22, 2024
1 parent ebe1724 commit 02e9b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/imperative/src/utilities/src/CliUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export class CliUtils {
secToWait = maxSecToWait;
}

let response: string | null;
let response: string;
try {
response = await read({
input: process.stdin,
Expand All @@ -500,7 +500,7 @@ export class CliUtils {
if (err.message === "canceled") {
process.exit(2);
} else if (err.message === "timed out") {
// Do nothing, swallow the error
return null;
} else {
throw err;
}
Expand Down

0 comments on commit 02e9b9a

Please sign in to comment.