There was an error while loading. Please reload this page.
1 parent 44b29a9 commit a94f687Copy full SHA for a94f687
1 file changed
lib/common/services/command-definition-adapter.ts
@@ -86,7 +86,7 @@ export function createCommandFromDefinition<
86
execute: async (args: string[]): Promise<void> => {
87
// runInInjectionContext is synchronous, so inject() is available while
88
// run() executes up to its first await, and not after it.
89
- await runInInjectionContext((<any>targetInjector).di, () =>
+ await runInInjectionContext(targetInjector.di, () =>
90
definition.run(buildContext(args)),
91
);
92
},
0 commit comments