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

Unified Diff: pkg/analysis_server/lib/src/channel/web_socket_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
Index: pkg/analysis_server/lib/src/channel/web_socket_channel.dart
diff --git a/pkg/analysis_server/lib/src/channel/web_socket_channel.dart b/pkg/analysis_server/lib/src/channel/web_socket_channel.dart
index 0368eb64a6e5726a41a4d359dabafc750289eccf..282b1f965fecb814f7e2b012abaaa169a091fdef 100644
--- a/pkg/analysis_server/lib/src/channel/web_socket_channel.dart
+++ b/pkg/analysis_server/lib/src/channel/web_socket_channel.dart
@@ -55,10 +55,11 @@ class WebSocketClientChannel implements ClientCommunicationChannel {
}
@override
- Future<Response> sendRequest(Request request) {
+ Future<Response> sendRequest(Request request) async {
String id = request.id;
socket.add(JSON.encode(request.toJson()));
- return responseStream.firstWhere((Response response) => response.id == id);
+ return await responseStream
+ .firstWhere((Response response) => response.id == id);
}
}

Powered by Google App Engine
This is Rietveld 408576698