feat: throw error for invalid extended input
This commit is contained in:
parent
da2d5466d3
commit
cef7a7b43d
1 changed files with 3 additions and 3 deletions
|
@ -2,10 +2,10 @@ export default function getURL(os: string, extended: string, version: string): s
|
|||
const extendedStr = (extended: string): string => {
|
||||
if (extended === 'true') {
|
||||
return 'extended_';
|
||||
} else {
|
||||
} else if (extended === 'false') {
|
||||
return '';
|
||||
// } else {
|
||||
// throw new Error(`Invalid input (extended): ${extended}`);
|
||||
} else {
|
||||
throw new Error(`Invalid input (extended): ${extended}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue