Skip to content

Commit 31e5cae

Browse files
committed
fix(ts): remove "as any" in chain.ts
1 parent 90a8cab commit 31e5cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proxy/chain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ const getChain = async (action: Action): Promise<((req: any, action: Action) =>
6565
for (const pluginObj of chainPluginLoader.pushPlugins) {
6666
console.log(`Inserting push plugin ${pluginObj.constructor.name} into chain`);
6767
// insert custom functions after parsePush but before other actions
68-
pushActionChain.splice(1, 0, pluginObj.exec as any);
68+
pushActionChain.splice(1, 0, pluginObj.exec);
6969
}
7070
for (const pluginObj of chainPluginLoader.pullPlugins) {
7171
console.log(`Inserting pull plugin ${pluginObj.constructor.name} into chain`);
7272
// insert custom functions before other pull actions
73-
pullActionChain.splice(0, 0, pluginObj.exec as any);
73+
pullActionChain.splice(0, 0, pluginObj.exec);
7474
}
7575
// This is set to true so that we don't re-insert the plugins into the chain
7676
pluginsInserted = true;

0 commit comments

Comments
 (0)