Skip to content

Commit 8696efd

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent ce0dc47 commit 8696efd

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

packages/app-types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ declare module '@firebase/component' {
106106
interface ComponentContainer {
107107
getProvider(name: 'app'): Provider<FirebaseApp>;
108108
}
109-
}
109+
}

packages/app/src/firebaseApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class FirebaseAppImpl implements FirebaseApp {
125125
// getImmediate will always succeed because _getService is only called for registered components.
126126
return this.container
127127
.getProvider(name)
128-
.getImmediate({identifier: instanceIdentifier}) as FirebaseService;
128+
.getImmediate({ identifier: instanceIdentifier }) as FirebaseService;
129129
}
130130
/**
131131
* Remove a service instance from the cache, so we will create a new instance for this service

packages/app/src/lite/firebaseAppLite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class FirebaseAppLiteImpl implements FirebaseApp {
135135
// getImmediate will always succeed because _getService is only called for registered components.
136136
return this.container
137137
.getProvider(name)
138-
.getImmediate({identifier: instanceIdentifier}) as FirebaseService;
138+
.getImmediate({ identifier: instanceIdentifier }) as FirebaseService;
139139
}
140140

141141
/**

packages/component/src/provider.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class Provider<T = unknown> {
3232
constructor(
3333
private readonly name: string,
3434
private readonly container: ComponentContainer
35-
) { }
35+
) {}
3636

3737
/**
3838
* @param identifier A provider can provide mulitple instances of a service
@@ -92,7 +92,7 @@ export class Provider<T = unknown> {
9292
}
9393
return instance;
9494
} catch (e) {
95-
if(optional) {
95+
if (optional) {
9696
return null;
9797
} else {
9898
throw e;
@@ -117,7 +117,7 @@ export class Provider<T = unknown> {
117117
try {
118118
this.getOrInitializeService(DEFAULT_ENTRY_NAME);
119119
} catch (e) {
120-
// when the instance factory for an eager Component throws an exception during the eager
120+
// when the instance factory for an eager Component throws an exception during the eager
121121
// initialization, it should not cause an fatal error.
122122
// TODO: Investigate if we need to make it configurable, because some component may want to cause
123123
// a fatal error in this case?
@@ -143,7 +143,6 @@ export class Provider<T = unknown> {
143143
// when the instance factory throws an exception, it should not cause
144144
// an fatal error. We just leave the promise unresolved.
145145
}
146-
147146
}
148147
}
149148

packages/messaging-types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ declare module '@firebase/component' {
5555
getProvider(name: 'messaging'): Provider<FirebaseMessaging>;
5656
}
5757

58-
interface Provider { }
58+
interface Provider {}
5959
}

0 commit comments

Comments
 (0)