[CST-3088] Fix lint errors

This commit is contained in:
Giuseppe Digilio
2020-07-01 15:35:29 +02:00
parent e0604026c5
commit 81f0391400
9 changed files with 18 additions and 24 deletions

View File

@@ -337,12 +337,6 @@ export const models =
})
export class CoreModule {
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
if (isNotEmpty(parentModule)) {
throw new Error('CoreModule is already loaded. Import it in the AppModule only');
}
}
static forRoot(): ModuleWithProviders {
return {
ngModule: CoreModule,
@@ -351,4 +345,10 @@ export class CoreModule {
]
};
}
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
if (isNotEmpty(parentModule)) {
throw new Error('CoreModule is already loaded. Import it in the AppModule only');
}
}
}