diff --git a/src/templates/exportService.hbs b/src/templates/exportService.hbs index 99f6e9be..67b7a1f8 100644 --- a/src/templates/exportService.hbs +++ b/src/templates/exportService.hbs @@ -28,15 +28,11 @@ import { request as __request } from '../core/request'; export class {{{name}}}{{{@root.postfix}}} { {{#if @root.exportClient}} - constructor(private readonly httpRequest: BaseHttpRequest) { - this.httpRequest = httpRequest; - } + constructor(private readonly httpRequest: BaseHttpRequest) {} {{/if}} {{#equals @root.httpClient 'angular'}} - constructor(private readonly http: HttpClient) { - this.http = http; - } + constructor(private readonly http: HttpClient) {} {{/equals}} {{#each operations}}