Make prettier happy

This commit is contained in:
Oliver Blanthorn 2022-01-11 12:57:08 +01:00
parent 4f8f5ae0c4
commit 1a1a0fab94
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -3871,8 +3871,7 @@ export function setmode(mode: string, key: string, ...values: string[]) {
if (!mode || !key || !values.length) {
throw new Error("seturl syntax: mode key value")
}
if (key !== "allowautofocus")
throw new Error("Setting '" + key + "' not supported with setmode")
if (key !== "allowautofocus") throw new Error("Setting '" + key + "' not supported with setmode")
return config.set("modesubconfigs", mode, ...validateSetArgs(key, values))
}