Skip to content

Commit

Permalink
Merge branch 'master' into 2024-10-25-owner-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt authored Oct 26, 2024
2 parents e05dbb0 + 4a6cd6b commit 865dfb2
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 @@ -95,7 +95,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 865dfb2

Please sign in to comment.