Skip to content

Commit 15c9d62

Browse files
authored
fix analysis warnings in imitation_game (#234)
1 parent 85135dd commit 15c9d62

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/imitation_game/bin/imitation_game.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ class _ImitationGame {
169169
results.putIfAbsent(test, () => <String, dynamic>{});
170170
results[test].putIfAbsent(platform, () => <String, dynamic>{});
171171
data['results'].forEach((String k, dynamic v) {
172-
// ignore: avoid_as
173172
results[test][platform][k] = v as double;
174173
});
175174
return _runNext();
@@ -239,7 +238,6 @@ Future<void> main(List<String> args) async {
239238
if (request.method == 'POST') {
240239
final String content = await utf8.decoder.bind(request).join();
241240
final Map<String, dynamic> data =
242-
// ignore: avoid_as
243241
jsonDecode(content) as Map<String, dynamic>;
244242
print('$data');
245243
keepRunning = await game.handleResult(data);
@@ -261,7 +259,6 @@ Future<void> main(List<String> args) async {
261259
const JsonDecoder decoder = JsonDecoder();
262260
final Map<String, dynamic> lastResults =
263261
decoder.convert(File(lastResultsFilename).readAsStringSync())
264-
// ignore: avoid_as
265262
as Map<String, dynamic>;
266263

267264
// TODO(aaclarke): Calculate the generation time for each measurement since we

0 commit comments

Comments
 (0)