Skip to content

Commit b7a0f8d

Browse files
committed
- Short notation for properties passed through constructor
1 parent c9b4b7e commit b7a0f8d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/templates/exportService.hbs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ import { request as __request } from '../core/request';
2828
export class {{{name}}}{{{@root.postfix}}} {
2929
{{#if @root.exportClient}}
3030

31-
constructor(private readonly httpRequest: BaseHttpRequest) {
32-
this.httpRequest = httpRequest;
33-
}
31+
constructor(private readonly httpRequest: BaseHttpRequest) {}
3432
{{/if}}
3533
{{#equals @root.httpClient 'angular'}}
3634

37-
constructor(private readonly http: HttpClient) {
38-
this.http = http;
39-
}
35+
constructor(private readonly http: HttpClient) {}
4036
{{/equals}}
4137

4238
{{#each operations}}

0 commit comments

Comments
 (0)