diff --git a/filters/all.js b/filters/all.js index b68290da..5d194dc3 100644 --- a/filters/all.js +++ b/filters/all.js @@ -134,7 +134,7 @@ filter.trimLastChar = trimLastChar; function convertOpertionIdToMiddlewareFn(operationId) { const capitalizedOperationId = operationId.charAt(0).toUpperCase() + operationId.slice(1); - return "register" + capitalizedOperationId + "Middleware"; + return `register${ capitalizedOperationId }Middleware`; } filter.convertOpertionIdToMiddlewareFn = convertOpertionIdToMiddlewareFn;