File tree Expand file tree Collapse file tree 4 files changed +0
-6
lines changed
Expand file tree Collapse file tree 4 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,6 @@ class {{ $elem.Name }} {
233233{{- if eq .HasResFields true }}
234234 const res = JSON.parse(responseText) as {{ $method.ResponseType }};
235235{{- else }}
236- await resp.text();
237236 const res = {} as {{ $method.ResponseType }};
238237{{- end }}
239238 context.response = res;
Original file line number Diff line number Diff line change @@ -810,7 +810,6 @@ class ServiceUser2Client {
810810 await this . callMiddleware ( this . afterMiddleware , context ) ;
811811 throw new ApiError ( resp , responseText ) ;
812812 }
813- await resp . text ( ) ;
814813 const res = { } as ServiceUser2DeleteUserResponse ;
815814 context . response = res ;
816815 await this . callMiddleware ( this . afterMiddleware , context ) ;
@@ -1511,7 +1510,6 @@ class ServiceUserClient {
15111510 await this . callMiddleware ( this . afterMiddleware , context ) ;
15121511 throw new ApiError ( resp , responseText ) ;
15131512 }
1514- await resp . text ( ) ;
15151513 const res = { } as ServiceUserGetResponse ;
15161514 context . response = res ;
15171515 await this . callMiddleware ( this . afterMiddleware , context ) ;
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ class FooBarClient {
175175 await this . callMiddleware ( this . afterMiddleware , context ) ;
176176 throw new ApiError ( resp , responseText ) ;
177177 }
178- await resp . text ( ) ;
179178 const res = { } as FooBarPostUserResponse ;
180179 context . response = res ;
181180 await this . callMiddleware ( this . afterMiddleware , context ) ;
Original file line number Diff line number Diff line change @@ -810,7 +810,6 @@ class ServiceUser2Client {
810810 await this . callMiddleware ( this . afterMiddleware , context ) ;
811811 throw new ApiError ( resp , responseText ) ;
812812 }
813- await resp . text ( ) ;
814813 const res = { } as ServiceUser2DeleteUserResponse ;
815814 context . response = res ;
816815 await this . callMiddleware ( this . afterMiddleware , context ) ;
@@ -1511,7 +1510,6 @@ class ServiceUserClient {
15111510 await this . callMiddleware ( this . afterMiddleware , context ) ;
15121511 throw new ApiError ( resp , responseText ) ;
15131512 }
1514- await resp . text ( ) ;
15151513 const res = { } as ServiceUserGetResponse ;
15161514 context . response = res ;
15171515 await this . callMiddleware ( this . afterMiddleware , context ) ;
You can’t perform that action at this time.
0 commit comments