Skip to content

Commit 4e84bef

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 7a26d3e commit 4e84bef

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/database/src/core/PersistentConnection.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,14 @@ export class PersistentConnection extends ServerActions {
743743
const forceRefresh = this.forceTokenRefresh_;
744744
this.forceTokenRefresh_ = false;
745745

746-
if (typeof process !== 'undefined' && process.env[FIREBASE_DATABASE_EMULATOR_HOST_VAR]) {
747-
log('Connecting to a database emulator, ommitting access token requests.');
748-
self.authToken_ = "owner"
746+
if (
747+
typeof process !== 'undefined' &&
748+
process.env[FIREBASE_DATABASE_EMULATOR_HOST_VAR]
749+
) {
750+
log(
751+
'Connecting to a database emulator, ommitting access token requests.'
752+
);
753+
self.authToken_ = 'owner';
749754
connection = new Connection(
750755
connId,
751756
self.repoInfo_,

packages/database/src/core/RepoManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import { RepoInfo } from './RepoInfo';
2828
/** @const {string} */
2929
const DATABASE_URL_OPTION = 'databaseURL';
3030

31-
export const FIREBASE_DATABASE_EMULATOR_HOST_VAR = 'FIREBASE_DATABASE_EMULATOR_HOST';
31+
export const FIREBASE_DATABASE_EMULATOR_HOST_VAR =
32+
'FIREBASE_DATABASE_EMULATOR_HOST';
3233

3334
let _staticInstance: RepoManager;
3435

0 commit comments

Comments
 (0)