aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/usecases')
-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 };