Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit 4506c52

Browse files
committed
Use different name for response body for clarity
1 parent 70123f3 commit 4506c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/functions_client.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class FunctionsClient {
5151

5252
final dynamic data;
5353
if (responseType == ResponseType.json) {
54-
final body = response.body;
55-
data = body?.isEmpty ?? true ? null : await compute(json.decode, body);
54+
final resBody = response.body;
55+
data = resBody.isEmpty ? null : await compute(json.decode, resBody);
5656
} else if (responseType == ResponseType.blob) {
5757
data = response.bodyBytes;
5858
} else if (responseType == ResponseType.arraybuffer) {

0 commit comments

Comments
 (0)