diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-19 18:10:08 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-19 18:10:08 -0500 |
commit | 5c35c2631e59f895a7b0fb6761c1cae7aee60466 (patch) | |
tree | 0d05efe9841a1a62fbf277a025dc6a16bed6750a /web/react/stores/preference_store.jsx | |
parent | c22e8129b0b5f67df6ab8384261a4994fc5cbfb1 (diff) | |
download | chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.gz chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.bz2 chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.zip |
Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Diffstat (limited to 'web/react/stores/preference_store.jsx')
-rw-r--r-- | web/react/stores/preference_store.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/stores/preference_store.jsx b/web/react/stores/preference_store.jsx index f630d150d..cc353be6c 100644 --- a/web/react/stores/preference_store.jsx +++ b/web/react/stores/preference_store.jsx @@ -105,7 +105,7 @@ class PreferenceStoreClass extends EventEmitter { const action = payload.action; switch (action.type) { - case ActionTypes.RECIEVED_PREFERENCES: + case ActionTypes.RECIEVED_PREFERENCES: { const preferences = this.getAllPreferences(); for (const preference of action.preferences) { @@ -114,6 +114,8 @@ class PreferenceStoreClass extends EventEmitter { this.setAllPreferences(preferences); this.emitChange(preferences); + break; + } } } } |