@@ -40,7 +40,7 @@ export class AppStore {
40
40
options . credential = getApplicationDefault ( ) ;
41
41
}
42
42
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
44
44
// those of this `initializeApp` request.
45
45
if ( ! this . appStore . has ( appName ) ) {
46
46
const app = new FirebaseApp ( options , appName , autoInit , this ) ;
@@ -49,7 +49,7 @@ export class AppStore {
49
49
}
50
50
51
51
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.
53
53
if ( currentApp . autoInit ( ) !== autoInit ) {
54
54
throw new FirebaseAppError (
55
55
AppErrorCodes . INVALID_APP_OPTIONS ,
@@ -59,16 +59,16 @@ export class AppStore {
59
59
60
60
if ( autoInit ) {
61
61
// 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.
63
63
return currentApp ;
64
64
}
65
65
66
66
// Ensure the options objects don't break deep equal comparisons.
67
67
validateAppOptionsSupportDeepEquals ( options , currentApp ) ;
68
68
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.
72
72
const currentAppOptions = { ...currentApp . options } ;
73
73
delete currentAppOptions . credential ;
74
74
if ( ! fastDeepEqual ( options , currentAppOptions ) ) {
0 commit comments