Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
colerogers committed Apr 13, 2023
1 parent 717eeee commit 6d29627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/v1/function-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function assertRuntimeOptionsValid(runtimeOptions: RuntimeOptions): boolean {
`The only valid memory allocation values are: ${VALID_MEMORY_OPTIONS.join(", ")}`
);
}
if (typeof runtimeOptions.timeoutSeconds === "number" && (runtimeOptions.timeoutSeconds > MAX_TIMEOUT_SECONDS || runtimeOptions.timeoutSeconds < 0)) {
if (
typeof runtimeOptions.timeoutSeconds === "number" &&
(runtimeOptions.timeoutSeconds > MAX_TIMEOUT_SECONDS || runtimeOptions.timeoutSeconds < 0)
) {
throw new Error(`TimeoutSeconds must be between 0 and ${MAX_TIMEOUT_SECONDS}`);
}

Expand Down

0 comments on commit 6d29627

Please sign in to comment.