Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b6389ee

Browse files
mechpenlgalfaso
authored andcommitted
chore(injector): avoid invoking noop
1 parent a6339d3 commit b6389ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto/injector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function createInjector(modulesToLoad, strictDi) {
645645
}));
646646

647647

648-
forEach(loadModules(modulesToLoad), function(fn) { instanceInjector.invoke(fn || noop); });
648+
forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); });
649649

650650
return instanceInjector;
651651

0 commit comments

Comments
 (0)