Skip to content

Commit 0b93404

Browse files
committed
refactor(microservices): simplify function call
1 parent b91803c commit 0b93404

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/microservices/context/kafka-rpc-proxy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export class KafkaRpcProxy extends RpcProxy {
77
targetCallback: (...args: unknown[]) => Promise<Observable<any>>,
88
exceptionsHandler: RpcExceptionsHandler,
99
): (...args: unknown[]) => Promise<Observable<unknown>> {
10-
return (...args: unknown[]) => {
11-
return targetCallback(...args);
12-
};
10+
return targetCallback;
1311
}
1412
}

0 commit comments

Comments
 (0)