File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ export class FirebaseAppImpl implements FirebaseApp {
124
124
this . checkDestroyed_ ( ) ;
125
125
126
126
// getImmediate will always succeed because _getService is only called for registered components.
127
- return ( this . container . getProvider ( name as Name ) . getImmediate ( {
127
+ return this . container . getProvider ( name as Name ) . getImmediate ( {
128
128
identifier : instanceIdentifier
129
- } ) as unknown ) as FirebaseService ;
129
+ } ) as unknown as FirebaseService ;
130
130
}
131
131
/**
132
132
* 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 @@ -31,7 +31,8 @@ import { DEFAULT_ENTRY_NAME } from '../constants';
31
31
import {
32
32
ComponentContainer ,
33
33
Component ,
34
- ComponentType
34
+ ComponentType ,
35
+ Name
35
36
} from '@firebase/component' ;
36
37
37
38
interface ServicesCache {
@@ -134,12 +135,11 @@ export class FirebaseAppLiteImpl implements FirebaseApp {
134
135
135
136
// getImmediate will always succeed because _getService is only called for registered components.
136
137
return (
137
- ( this . container
138
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
139
- . getProvider ( name as any )
138
+ this . container
139
+ . getProvider ( name as Name )
140
140
. getImmediate ( {
141
141
identifier : instanceIdentifier
142
- } ) as unknown ) as FirebaseService
142
+ } ) as unknown as FirebaseService
143
143
) ;
144
144
}
145
145
You can’t perform that action at this time.
0 commit comments