diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/background/usecases/parsers.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/background/usecases/parsers.ts b/src/background/usecases/parsers.ts index 544dce4..99ff2eb 100644 --- a/src/background/usecases/parsers.ts +++ b/src/background/usecases/parsers.ts @@ -29,8 +29,9 @@ const parseSetOption = ( case 'string': return [key, value]; case 'number': return [key, mustNumber(value)]; case 'boolean': return [key, value]; + default: + throw new Error('Unknown property type: ' + def.type); } - throw new Error('Unknown property type: ' + def.type); }; export { parseSetOption }; |