Skip to content

Commit

Permalink
fix: fix this.body cast of null value when response body is null (lej…
Browse files Browse the repository at this point in the history
  • Loading branch information
rIIh committed Sep 3, 2021
1 parent 8be965b commit 19fc6c0
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 19fc6c0

Please sign in to comment.