Skip to content

Commit 0862fdf

Browse files
Undo formatting
1 parent 930be11 commit 0862fdf

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages-exp/auth-exp/index.webworker.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ registerAuth(ClientPlatform.WORKER);
3737
export function getAuth(app = getApp()): Auth {
3838
// Unlike the other environments, we need to explicitly check if indexedDb is
3939
// 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;
4441

4542
// This promise is intended to float; auth initialization happens in the
4643
// background, meanwhile the auth object may be used by the app.

packages/database/src/api/Database.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,14 @@ export class Database implements FirebaseService {
157157
validateUrl(apiName, 1, parsedURL);
158158

159159
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) {
164161
fatal(
165162
apiName +
166163
': Host name does not match the current database: ' +
167164
'(found ' +
168165
repoInfo.host +
169166
' but expected ' +
170-
this.repo_.repoInfo_.host +
167+
this.repo_.repoInfo_.host+
171168
')'
172169
);
173170
}

0 commit comments

Comments
 (0)