Skip to content

Commit 615530e

Browse files
authored
Merge pull request #69 from bbakhrom/patch-1
null should treat as value
2 parents f87c5fa + 22a8af2 commit 615530e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ContainerInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class ContainerInstance {
250250
private getServiceValue(identifier: ServiceIdentifier, service: ServiceMetadata<any, any>|undefined): any {
251251

252252
// find if instance of this object already initialized in the container and return it if it is
253-
if (service && service.value !== null && service.value !== undefined)
253+
if (service && service.value !== undefined)
254254
return service.value;
255255

256256
// 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)