From d37ec239c493637bbc1407caa2b1f2ce5fb99e9b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pionnier Date: Thu, 20 Sep 2018 11:24:56 +0200 Subject: [PATCH] refactor: clean code --- packages/core/injector/module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/injector/module.ts b/packages/core/injector/module.ts index 409723f52f7..802b6f0c588 100644 --- a/packages/core/injector/module.ts +++ b/packages/core/injector/module.ts @@ -241,7 +241,7 @@ export class Module { } public addCustomClass(component: CustomClass, collection: Map) { - const { provide, name, useClass } = component; + const { name, useClass } = component; collection.set(name, { name, metatype: useClass, @@ -251,7 +251,7 @@ export class Module { } public addCustomValue(component: CustomValue, collection: Map) { - const { provide, name, useValue: value } = component; + const { name, useValue: value } = component; collection.set(name, { name, metatype: null, @@ -266,7 +266,7 @@ export class Module { component: CustomFactory, collection: Map, ) { - const { provide, name, useFactory: factory, inject } = component; + const { name, useFactory: factory, inject } = component; collection.set(name, { name, metatype: factory as any,