Skip to content

Commit 22a8af2

Browse files
authored
null should treat as value
1 parent f87c5fa commit 22a8af2

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)