We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41f6fb commit cf75759Copy full SHA for cf75759
src/Container.ts
@@ -70,7 +70,7 @@ export class Container {
70
let service = this.findService(identifier);
71
72
// find if instance of this object already initialized in the container and return it if it is
73
- if (service && service.instance != null)
+ if (service && service.instance !== null)
74
return service.instance as T;
75
76
// if named service was requested and its instance was not found plus there is not type to know what to initialize,
0 commit comments