diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 20:03:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 20:03:27 +0900 |
commit | 45078785e9db07c7eb857adbc6d03174a8bb69aa (patch) | |
tree | 80da1a3a2bc89b3f17f39cf9a6ac4ab8f4245a4b /src/background/usecases/parsers.ts | |
parent | 750be0263207b1275ae3911b5585343b49de2645 (diff) | |
parent | ccf2275eec491f2105c1919ed5cb025f4df7e1cb (diff) |
Merge pull request #692 from ueokande/qa-0.26
QA 0.26
Diffstat (limited to 'src/background/usecases/parsers.ts')
-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 }; |