File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
packages/database/src/api Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ registerAuth(ClientPlatform.WORKER);
37
37
export function getAuth ( app = getApp ( ) ) : Auth {
38
38
// Unlike the other environments, we need to explicitly check if indexedDb is
39
39
// available. That means doing the whole rigamarole
40
- const auth = _getProvider (
41
- app ,
42
- _ComponentName . AUTH
43
- ) . getImmediate ( ) as AuthImpl ;
40
+ const auth = _getProvider ( app , _ComponentName . AUTH ) . getImmediate ( ) as AuthImpl ;
44
41
45
42
// This promise is intended to float; auth initialization happens in the
46
43
// background, meanwhile the auth object may be used by the app.
Original file line number Diff line number Diff line change @@ -157,17 +157,14 @@ export class Database implements FirebaseService {
157
157
validateUrl ( apiName , 1 , parsedURL ) ;
158
158
159
159
const repoInfo = parsedURL . repoInfo ;
160
- if (
161
- ! repoInfo . isCustomHost ( ) &&
162
- repoInfo . host !== this . repo_ . repoInfo_ . host
163
- ) {
160
+ if ( ! repoInfo . isCustomHost ( ) && repoInfo . host !== this . repo_ . repoInfo_ . host ) {
164
161
fatal (
165
162
apiName +
166
163
': Host name does not match the current database: ' +
167
164
'(found ' +
168
165
repoInfo . host +
169
166
' but expected ' +
170
- this . repo_ . repoInfo_ . host +
167
+ this . repo_ . repoInfo_ . host +
171
168
')'
172
169
) ;
173
170
}
You can’t perform that action at this time.
0 commit comments