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

Unified Diff: pkg/analysis_server/lib/src/channel/byte_stream_channel.dart

Issue 2198223002: Mark analysis_server as being strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « pkg/analysis_server/.analysis_options ('k') | pkg/analysis_server/lib/src/channel/web_socket_channel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/channel/byte_stream_channel.dart
diff --git a/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart b/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart
index ce6235d01bfb3f5716b4266c96ebd0b88834002e..c17b77b748fbee5abe39aae81751d8feb7ec33e3 100644
--- a/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart
+++ b/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart
@@ -51,10 +51,11 @@ class ByteStreamClientChannel implements ClientCommunicationChannel {
}
@override
- Future<Response> sendRequest(Request request) {
+ Future<Response> sendRequest(Request request) async {
String id = request.id;
output.write(JSON.encode(request.toJson()) + '\n');
- return responseStream.firstWhere((Response response) => response.id == id);
+ return await responseStream
+ .firstWhere((Response response) => response.id == id);
}
}
« no previous file with comments | « pkg/analysis_server/.analysis_options ('k') | pkg/analysis_server/lib/src/channel/web_socket_channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698