Be consistent, simplify the source code

This commit is contained in:
Lyubo Marinov 2017-02-25 19:00:35 -06:00
parent d2b2f98941
commit 702144180c
1 changed files with 4 additions and 7 deletions

View File

@ -11,8 +11,7 @@ import {
* The initial state of 'features/base/lib-jitsi-meet'.
*
* @type {{
* initializationError: null,
* initialized: boolean
* config: Object
* }}
*/
const INITIAL_STATE = {
@ -40,9 +39,7 @@ const INITIAL_STATE = {
// third parties and we can temporarily disable them (until we implement
// an alternative to async script elements on React Native).
disableThirdPartyRequests: true
},
initializationError: null,
initialized: false
}
};
ReducerRegistry.register(
@ -55,14 +52,14 @@ ReducerRegistry.register(
case LIB_INIT_ERROR:
return {
...state,
initializationError: action.error,
initError: action.error,
initialized: false
};
case LIB_INITIALIZED:
return {
...state,
initializationError: null,
initError: undefined,
initialized: true
};