File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class Provider<T extends Name> {
36
36
constructor (
37
37
private readonly name : T ,
38
38
private readonly container : ComponentContainer
39
- ) { }
39
+ ) { }
40
40
41
41
/**
42
42
* @param identifier A provider can provide mulitple instances of a service
@@ -102,7 +102,7 @@ export class Provider<T extends Name> {
102
102
}
103
103
return instance ;
104
104
} catch ( e ) {
105
- if ( optional ) {
105
+ if ( optional ) {
106
106
return null ;
107
107
} else {
108
108
throw e ;
@@ -127,7 +127,7 @@ export class Provider<T extends Name> {
127
127
try {
128
128
this . getOrInitializeService ( DEFAULT_ENTRY_NAME ) ;
129
129
} catch ( e ) {
130
- // when the instance factory for an eager Component throws an exception during the eager
130
+ // when the instance factory for an eager Component throws an exception during the eager
131
131
// initialization, it should not cause an fatal error.
132
132
// TODO: Investigate if we need to make it configurable, because some component may want to cause
133
133
// a fatal error in this case?
@@ -153,7 +153,6 @@ export class Provider<T extends Name> {
153
153
// when the instance factory throws an exception, it should not cause
154
154
// an fatal error. We just leave the promise unresolved.
155
155
}
156
-
157
156
}
158
157
}
159
158
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