There was an error while loading. Please reload this page.
1 parent 5191c2a commit 74caa8fCopy full SHA for 74caa8f
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