Simplify getBottomInterceptingCall signature

This commit is contained in:
murgatroid99 2020-02-26 17:54:22 -08:00
parent f0fbe44134
commit 77b86fdbea
1 changed files with 1 additions and 3 deletions

View File

@ -454,11 +454,10 @@ class BaseStreamingInterceptingCall extends BaseInterceptingCall
// tslint:disable-next-line no-any
function getBottomInterceptingCall(
channel: Channel,
path: string,
options: InterceptorOptions,
methodDefinition: ClientMethodDefinition<any, any>
) {
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
)