From 948158715141333751857f21c31c4ba0c20688fb Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Tue, 24 Sep 2019 00:05:12 +0530 Subject: [PATCH] Minor stylistic update --- store/postwoman.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/postwoman.js b/store/postwoman.js index 83ee2714b..034333253 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -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; }