mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 07:01:28 +00:00
Minor stylistic update
This commit is contained in:
parent
e6387c694e
commit
9481587151
@ -48,7 +48,7 @@ export const state = () => ({
|
||||
export const mutations = {
|
||||
|
||||
applySetting (state, setting) {
|
||||
if(setting == null || !(setting instanceof Array) || setting.length !== 2)
|
||||
if (setting == null || !(setting instanceof Array) || setting.length !== 2)
|
||||
throw new Error("You must provide a setting (array in the form [key, value])");
|
||||
|
||||
const [key, value] = setting;
|
||||
@ -56,7 +56,7 @@ export const mutations = {
|
||||
// Add your settings key to the SETTINGS_KEYS array at the
|
||||
// top of the file.
|
||||
// This is to ensure that application settings remain documented.
|
||||
if(!SETTINGS_KEYS.includes(key)) throw new Error("The settings structure does not include the key " + key);
|
||||
if (!SETTINGS_KEYS.includes(key)) throw new Error("The settings structure does not include the key " + key);
|
||||
|
||||
state.settings[key] = value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user