aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases/parsers.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 20:03:27 +0900
committerGitHub <noreply@github.com>2019-12-22 20:03:27 +0900
commit45078785e9db07c7eb857adbc6d03174a8bb69aa (patch)
tree80da1a3a2bc89b3f17f39cf9a6ac4ab8f4245a4b /src/background/usecases/parsers.ts
parent750be0263207b1275ae3911b5585343b49de2645 (diff)
parentccf2275eec491f2105c1919ed5cb025f4df7e1cb (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.ts3
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 };