Skip to content

Commit cf75759

Browse files
authored
Update Container.ts
1 parent b41f6fb commit cf75759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Container {
7070
let service = this.findService(identifier);
7171

7272
// find if instance of this object already initialized in the container and return it if it is
73-
if (service && service.instance != null)
73+
if (service && service.instance !== null)
7474
return service.instance as T;
7575

7676
// if named service was requested and its instance was not found plus there is not type to know what to initialize,

0 commit comments

Comments
 (0)