Skip to content

Commit 7e97582

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 188aa5d commit 7e97582

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/app/src/firebaseApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class FirebaseAppImpl implements FirebaseApp {
145145
}
146146

147147
/**
148-
*
148+
*
149149
* @param component the component being added to this app's container
150150
* @param overwrite When a component with the same name has already been registered,
151151
* if overwrite is true: overwrite the existing component

packages/component/src/component_container.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,5 @@ describe('Component Container', () => {
115115
const newProvider = container.getProvider('fireball');
116116
expect(oldProvider).to.not.eq(newProvider);
117117
expect(newProvider.getImmediate()).to.deep.eq({ test: true });
118-
119118
});
120119
});

packages/component/src/component_container.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import { Component } from './component';
2121
export class ComponentContainer {
2222
private providers = new Map<string, Provider>();
2323

24-
constructor(private name: string) { }
24+
constructor(private name: string) {}
2525

2626
/**
27-
*
27+
*
2828
* @param component Component being added
2929
* @param overwrite When a component with the same name has already been registered,
3030
* if overwrite is true: overwrite the existing component with the new component and create a new provider with the new component
@@ -37,11 +37,12 @@ export class ComponentContainer {
3737
throw new Error(
3838
`Component ${component.name} has already been registered with ${this.name}`
3939
);
40-
} else { // use the new component to replace the existing component
40+
} else {
41+
// use the new component to replace the existing component
4142
// delete the existing provider from the container
4243
this.providers.delete(component.name);
4344
// create a new provider
44-
provider = this.getProvider(component.name);
45+
provider = this.getProvider(component.name);
4546
}
4647
}
4748

0 commit comments

Comments
 (0)