File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
src/language/typescript/2.0/serializers Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -349,15 +349,11 @@ export const serializeOperationObject = combineReader(
349
349
${ when ( hasBodyParameters , 'body,' ) }
350
350
}),
351
351
value =>
352
- ${ when (
353
- responseType !== 'blob' ,
354
- `pipe(
355
- ${ serializedResponses . io } .decode(value),
356
- either.mapLeft(ResponseValidationError.create),
357
- either.fold(error => e.httpClient.throwError(error), decoded => e.httpClient.of(decoded)),
358
- ),` ,
359
- ) }
360
- ${ when ( responseType === 'blob' , `e.httpClient.of(value)` ) }
352
+ pipe(
353
+ ${ serializedResponses . io } .decode(value),
354
+ either.mapLeft(ResponseValidationError.create),
355
+ either.fold(error => e.httpClient.throwError(error), decoded => e.httpClient.of(decoded)),
356
+ ),
361
357
);
362
358
},
363
359
` ;
You can’t perform that action at this time.
0 commit comments