Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 6f63e6a

Browse files
adaojuniorkwalrath
authored andcommitted
docs(server-communication): Resolve todo (#1993)
* use latest version of http_in_memory_web_api * remove todo and drop the ?? body term
1 parent e2919de commit 6f63e6a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

public/docs/_examples/server-communication/dart/lib/toh/hero_service.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ class HeroService {
5050
// #docregion extract-data
5151
dynamic _extractData(Response res) {
5252
var body = JSON.decode(res.body);
53-
// TODO: https://github.com/adaojunior/http-in-memory-web-api/issues/1
54-
// Once #1 is fixed, drop the `?? body` term:
55-
return body['data'] ?? body;
53+
return body['data'];
5654
}
5755
// #enddocregion extract-data
5856
// #docregion error-handling

public/docs/_examples/server-communication/dart/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
http: ^0.11.3+3
1212
jsonpadding: ^0.1.0
1313
stream_transformers: ^0.3.0+3
14-
http_in_memory_web_api: ^0.0.1
14+
http_in_memory_web_api: ^0.2.0
1515
# #docregion transformers
1616
transformers:
1717
- angular2:

0 commit comments

Comments
 (0)