Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2788)

Unified Diff: lib/src/mock_client.dart

Issue 1944603004: Fix one final strong-mode warning. (Closed) Base URL: git@github.com:dart-lang/http@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/mock_client.dart
diff --git a/lib/src/mock_client.dart b/lib/src/mock_client.dart
index 6bddbad00a3c9a72c9bbfe84b3fc9f699c19055e..acda5fde7ad262800059b8ea5ee7ebb286b269f3 100644
--- a/lib/src/mock_client.dart
+++ b/lib/src/mock_client.dart
@@ -10,7 +10,6 @@ import 'byte_stream.dart';
import 'request.dart';
import 'response.dart';
import 'streamed_response.dart';
-import 'utils.dart';
// TODO(nweiz): once Dart has some sort of Rack- or WSGI-like standard for
// server APIs, MockClient should conform to it.
@@ -71,9 +70,9 @@ class MockClient extends BaseClient {
});
/// Sends a request.
- Future<StreamedResponse> send(BaseRequest request) {
+ Future<StreamedResponse> send(BaseRequest request) async {
var bodyStream = request.finalize();
- return async.then((_) => _handler(request, bodyStream));
+ return await _handler(request, bodyStream);
}
}
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698