Skip to content

Commit

Permalink
fix: fix this.body cast of null value when response body is null (#291)…
Browse files Browse the repository at this point in the history
… (#292)
  • Loading branch information
rIIh committed Sep 23, 2021
1 parent 939a83f commit ff0ec87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chopper/lib/src/response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Response<BodyType> {
}) =>
Response<NewBodyType>(
base ?? this.base,
body ?? (this.body as NewBodyType),
body ?? (this.body as NewBodyType?),
error: bodyError ?? error,
);

Expand Down

0 comments on commit ff0ec87

Please sign in to comment.