From b7a0f8d0ebe215c647e8fbaacffaa9c828fc7fdd Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Wed, 26 Jan 2022 20:20:10 +0100 Subject: [PATCH] - Short notation for properties passed through constructor --- src/templates/exportService.hbs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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}}