Skip to content

Commit ecb3d53

Browse files
committed
More internal literals.
1 parent eadc2df commit ecb3d53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/lifecycle.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class AppStore {
4040
options.credential = getApplicationDefault();
4141
}
4242

43-
// Check if an App already exists and, if so, ensure its AppOptions match
43+
// Check if an app already exists and, if so, ensure its `AppOptions` match
4444
// those of this `initializeApp` request.
4545
if (!this.appStore.has(appName)) {
4646
const app = new FirebaseApp(options, appName, autoInit, this);
@@ -49,7 +49,7 @@ export class AppStore {
4949
}
5050

5151
const currentApp = this.appStore.get(appName)!;
52-
// Ensure the autoInit state matches the existing app's. If not, throw.
52+
// Ensure the `autoInit` state matches the existing app's. If not, throw.
5353
if (currentApp.autoInit() !== autoInit) {
5454
throw new FirebaseAppError(
5555
AppErrorCodes.INVALID_APP_OPTIONS,
@@ -59,16 +59,16 @@ export class AppStore {
5959

6060
if (autoInit) {
6161
// Auto-initialization is triggered when no options were passed to
62-
// initializeApp. With no options to compare, simply return the App.
62+
// `initializeApp`. With no options to compare, simply return the App.
6363
return currentApp;
6464
}
6565

6666
// Ensure the options objects don't break deep equal comparisons.
6767
validateAppOptionsSupportDeepEquals(options, currentApp);
6868

69-
// FirebaseApp() adds a synthesized Credential to app.options upon App
70-
// construction. Run a comparison w/o Credential to see if the base config
71-
// matches. Return the existing app if so.
69+
// `FirebaseApp()` adds a synthesized `Credential` to `app.options` upon
70+
// app construction. Run a comparison w/o `Credential` to see if the base
71+
// configurations match. Return the existing app if so.
7272
const currentAppOptions = { ...currentApp.options };
7373
delete currentAppOptions.credential;
7474
if (!fastDeepEqual(options, currentAppOptions)) {

0 commit comments

Comments
 (0)