Skip to content

Commit b1d6d10

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 83964fd commit b1d6d10

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/component/src/provider.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Provider<T extends Name> {
3636
constructor(
3737
private readonly name: T,
3838
private readonly container: ComponentContainer
39-
) { }
39+
) {}
4040

4141
/**
4242
* @param identifier A provider can provide mulitple instances of a service
@@ -102,7 +102,7 @@ export class Provider<T extends Name> {
102102
}
103103
return instance;
104104
} catch (e) {
105-
if(optional) {
105+
if (optional) {
106106
return null;
107107
} else {
108108
throw e;
@@ -127,7 +127,7 @@ export class Provider<T extends Name> {
127127
try {
128128
this.getOrInitializeService(DEFAULT_ENTRY_NAME);
129129
} catch (e) {
130-
// when the instance factory for an eager Component throws an exception during the eager
130+
// when the instance factory for an eager Component throws an exception during the eager
131131
// initialization, it should not cause an fatal error.
132132
// TODO: Investigate if we need to make it configurable, because some component may want to cause
133133
// a fatal error in this case?
@@ -153,7 +153,6 @@ export class Provider<T extends Name> {
153153
// when the instance factory throws an exception, it should not cause
154154
// an fatal error. We just leave the promise unresolved.
155155
}
156-
157156
}
158157
}
159158

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)