Skip to content

Commit 065c696

Browse files
committed
review again
1 parent ee36fd1 commit 065c696

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/javascript/browser.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export function {{apiName}}(
3636
throw new Error("`region` is missing.");
3737
}
3838
{{/fallbackToAliasHost}}
39+
3940
if (region && (typeof region !== 'string' || !REGIONS.includes(region))) {
4041
throw new Error(`\`region\` must be one of the following: ${REGIONS.join(', ')}`);
4142
}

templates/javascript/node.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export function {{apiName}}(
3636
throw new Error("`region` is missing.");
3737
}
3838
{{/fallbackToAliasHost}}
39+
3940
if (region && (typeof region !== 'string' || !REGIONS.includes(region))) {
4041
throw new Error(`\`region\` must be one of the following: ${REGIONS.join(', ')}`);
4142
}

0 commit comments

Comments
 (0)