Skip to content

Commit b4e2739

Browse files
Jay ParekhJay Parekh
authored andcommitted
error fix: remove constructor
1 parent f83f820 commit b4e2739

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sdk/lib/src/imagekitio-angular/imagekitio-angular.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ import { ImageKitConfiguration, ImagekitService } from './imagekit.service';
1212
providers: [ ImagekitService ]
1313
})
1414
export class ImagekitioAngularModule {
15-
constructor (@Optional() @SkipSelf() parentModule: ImagekitioAngularModule) {
16-
if (parentModule) {
17-
throw new Error(
18-
'ImagekitioAngularModule is already loaded. Import it in the AppModule only');
19-
}
20-
}
2115

2216
static forRoot(config: ImageKitConfiguration): ModuleWithProviders {
2317
return {

0 commit comments

Comments
 (0)