From 35888baf51462315fce39fbde52637d03d16a5ed Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Fri, 23 Oct 2020 15:56:43 -0700 Subject: [PATCH] fix analysis warnings in imitation_game --- packages/imitation_game/bin/imitation_game.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/imitation_game/bin/imitation_game.dart b/packages/imitation_game/bin/imitation_game.dart index 38421681076..411911ab326 100644 --- a/packages/imitation_game/bin/imitation_game.dart +++ b/packages/imitation_game/bin/imitation_game.dart @@ -169,7 +169,6 @@ class _ImitationGame { results.putIfAbsent(test, () => {}); results[test].putIfAbsent(platform, () => {}); data['results'].forEach((String k, dynamic v) { - // ignore: avoid_as results[test][platform][k] = v as double; }); return _runNext(); @@ -239,7 +238,6 @@ Future main(List args) async { if (request.method == 'POST') { final String content = await utf8.decoder.bind(request).join(); final Map data = - // ignore: avoid_as jsonDecode(content) as Map; print('$data'); keepRunning = await game.handleResult(data); @@ -261,7 +259,6 @@ Future main(List args) async { const JsonDecoder decoder = JsonDecoder(); final Map lastResults = decoder.convert(File(lastResultsFilename).readAsStringSync()) - // ignore: avoid_as as Map; // TODO(aaclarke): Calculate the generation time for each measurement since we