Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jahudka committed Aug 24, 2023
1 parent 3c17f2d commit f873769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ioc",
"inversion of control"
],
"version": "0.0.33",
"version": "0.0.34",
"license": "MIT",
"author": {
"name": "Dan Kadera",
Expand Down
2 changes: 1 addition & 1 deletion core/cli/src/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Checker {

removeExtraneousImplicitRegistrations(): void {
for (const def of this.registry.getDefinitions()) {
if (!def.explicit && this.registry.getIdsByType(def.type).filter((id) => id !== def.id)) {
if (!def.explicit && this.registry.getIdsByType(def.type).filter((id) => id !== def.id).length) {
this.registry.unregister(def.id);
}
}
Expand Down

0 comments on commit f873769

Please sign in to comment.