File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -106,4 +106,4 @@ declare module '@firebase/component' {
106
106
interface ComponentContainer {
107
107
getProvider ( name : 'app' ) : Provider < FirebaseApp > ;
108
108
}
109
- }
109
+ }
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class FirebaseAppImpl implements FirebaseApp {
125
125
// getImmediate will always succeed because _getService is only called for registered components.
126
126
return this . container
127
127
. getProvider ( name )
128
- . getImmediate ( { identifier : instanceIdentifier } ) as FirebaseService ;
128
+ . getImmediate ( { identifier : instanceIdentifier } ) as FirebaseService ;
129
129
}
130
130
/**
131
131
* Remove a service instance from the cache, so we will create a new instance for this service
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export class FirebaseAppLiteImpl implements FirebaseApp {
135
135
// getImmediate will always succeed because _getService is only called for registered components.
136
136
return this . container
137
137
. getProvider ( name )
138
- . getImmediate ( { identifier : instanceIdentifier } ) as FirebaseService ;
138
+ . getImmediate ( { identifier : instanceIdentifier } ) as FirebaseService ;
139
139
}
140
140
141
141
/**
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export class Provider<T = unknown> {
32
32
constructor (
33
33
private readonly name : string ,
34
34
private readonly container : ComponentContainer
35
- ) { }
35
+ ) { }
36
36
37
37
/**
38
38
* @param identifier A provider can provide mulitple instances of a service
@@ -92,7 +92,7 @@ export class Provider<T = unknown> {
92
92
}
93
93
return instance ;
94
94
} catch ( e ) {
95
- if ( optional ) {
95
+ if ( optional ) {
96
96
return null ;
97
97
} else {
98
98
throw e ;
@@ -117,7 +117,7 @@ export class Provider<T = unknown> {
117
117
try {
118
118
this . getOrInitializeService ( DEFAULT_ENTRY_NAME ) ;
119
119
} catch ( e ) {
120
- // when the instance factory for an eager Component throws an exception during the eager
120
+ // when the instance factory for an eager Component throws an exception during the eager
121
121
// initialization, it should not cause an fatal error.
122
122
// TODO: Investigate if we need to make it configurable, because some component may want to cause
123
123
// a fatal error in this case?
@@ -143,7 +143,6 @@ export class Provider<T = unknown> {
143
143
// when the instance factory throws an exception, it should not cause
144
144
// an fatal error. We just leave the promise unresolved.
145
145
}
146
-
147
146
}
148
147
}
149
148
Original file line number Diff line number Diff line change @@ -55,5 +55,5 @@ declare module '@firebase/component' {
55
55
getProvider ( name : 'messaging' ) : Provider < FirebaseMessaging > ;
56
56
}
57
57
58
- interface Provider { }
58
+ interface Provider { }
59
59
}
You can’t perform that action at this time.
0 commit comments