File tree Expand file tree Collapse file tree
packages/imitation_game/bin Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments