Skip to content

Commit

Permalink
Update type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeckie committed Nov 20, 2018
1 parent 06e1ca4 commit 034a2f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mock_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,18 @@ class RemoteMockServer {
}

// wait for a string response from the server
Future<String> _stringResponse(String command) {
Future<dynamic> _stringResponse(String command) {
final response = _serverMessages
.firstWhere((message) => (message is String && message == command));
return response as Future<String>;
return response;
}

// wait for a list response from the server
Future<List> _listResponse(String command) async {
Future<dynamic> _listResponse(String command) async {
final response = _serverMessages
.firstWhere((message) => (message is List && message[0] == command));

return response as Future<List>;
return response;
}
}

Expand Down

0 comments on commit 034a2f1

Please sign in to comment.