Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt authored Oct 25, 2024
1 parent 7ad5eb8 commit 4a6cd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export async function getConfig(
}

let timeout = 30_000;
if (options.timeout !== undefined) {
if (options.timeout) {
if (typeof options.timeout === "number") {
if (!Number.isInteger(options.timeout) || options.timeout == 0)
throw "invalid timeout, must be an integer greater than 0";
Expand Down

0 comments on commit 4a6cd6b

Please sign in to comment.