change: AsyncHandler consistent parameter name

This commit is contained in:
Matthieu Bosquet 2021-01-11 18:33:17 +00:00 committed by Ruben Verborgh
parent 66e636878f
commit f66096a60b

View File

@ -30,9 +30,9 @@ export abstract class AsyncHandler<TIn = void, TOut = void> {
* *
* @returns The result of the handle function of the handler. * @returns The result of the handle function of the handler.
*/ */
public async handleSafe(data: TIn): Promise<TOut> { public async handleSafe(input: TIn): Promise<TOut> {
await this.canHandle(data); await this.canHandle(input);
return this.handle(data); return this.handle(input);
} }
} }