Pārlūkot izejas kodu

Be consistent, simplify the source code

j8
Lyubo Marinov 8 gadus atpakaļ
vecāks
revīzija
702144180c
1 mainītis faili ar 4 papildinājumiem un 7 dzēšanām
  1. 4
    7
      react/features/base/lib-jitsi-meet/reducer.js

+ 4
- 7
react/features/base/lib-jitsi-meet/reducer.js Parādīt failu

@@ -11,8 +11,7 @@ import {
11 11
  * The initial state of 'features/base/lib-jitsi-meet'.
12 12
  *
13 13
  * @type {{
14
- *     initializationError: null,
15
- *     initialized: boolean
14
+ *     config: Object
16 15
  * }}
17 16
  */
18 17
 const INITIAL_STATE = {
@@ -40,9 +39,7 @@ const INITIAL_STATE = {
40 39
         // third parties and we can temporarily disable them (until we implement
41 40
         // an alternative to async script elements on React Native).
42 41
         disableThirdPartyRequests: true
43
-    },
44
-    initializationError: null,
45
-    initialized: false
42
+    }
46 43
 };
47 44
 
48 45
 ReducerRegistry.register(
@@ -55,14 +52,14 @@ ReducerRegistry.register(
55 52
         case LIB_INIT_ERROR:
56 53
             return {
57 54
                 ...state,
58
-                initializationError: action.error,
55
+                initError: action.error,
59 56
                 initialized: false
60 57
             };
61 58
 
62 59
         case LIB_INITIALIZED:
63 60
             return {
64 61
                 ...state,
65
-                initializationError: null,
62
+                initError: undefined,
66 63
                 initialized: true
67 64
             };
68 65
 

Notiek ielāde…
Atcelt
Saglabāt