Skip to content

Commit

Permalink
style: remove line
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo committed Oct 5, 2024
1 parent 32911d5 commit 98443c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ export async function generateSpecAndRoutes(args: SwaggerArgs, metadata?: Tsoa.M
throw err;
}
}

export type RouteGeneratorModule<Config extends ExtendedRoutesConfig> = {
default: new (
metadata: Tsoa.Metadata,
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/module/generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async function getRouteGenerator<Config extends ExtendedRoutesConfig>(metadata:
try {
// try as a module import
const module = (await import(routeGenerator)) as RouteGeneratorModule<Config>;

return new module.default(metadata, routesConfig);
} catch (_err) {
// try to find a relative import path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export abstract class TemplateService<ApiHandlerParameters, ValidationArgsParame
protected buildPromise(methodName: string, controller: Controller | object, validatedArgs: any) {
const prototype = Object.getPrototypeOf(controller);
const descriptor = Object.getOwnPropertyDescriptor(prototype, methodName);

return (descriptor!.value as () => Promise<PropertyDescriptor>).apply(controller, validatedArgs);
}
}

0 comments on commit 98443c0

Please sign in to comment.