From 77b86fdbeac030b3386e0b6219dc11a55d8756b1 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 26 Feb 2020 17:54:22 -0800 Subject: [PATCH] Simplify getBottomInterceptingCall signature --- packages/grpc-js/src/client-interceptors.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/grpc-js/src/client-interceptors.ts b/packages/grpc-js/src/client-interceptors.ts index a06fda1f..9892959e 100644 --- a/packages/grpc-js/src/client-interceptors.ts +++ b/packages/grpc-js/src/client-interceptors.ts @@ -454,11 +454,10 @@ class BaseStreamingInterceptingCall extends BaseInterceptingCall // tslint:disable-next-line no-any function getBottomInterceptingCall( channel: Channel, - path: string, options: InterceptorOptions, methodDefinition: ClientMethodDefinition ) { - const call = getCall(channel, path, options); + const call = getCall(channel, methodDefinition.path, options); if (methodDefinition.responseStream) { return new BaseStreamingInterceptingCall(call, methodDefinition); } else { @@ -554,7 +553,6 @@ export function getInterceptingCall( (finalOptions: InterceptorOptions) => getBottomInterceptingCall( channel, - methodDefinition.path, finalOptions, methodDefinition )