From 5d78c7447bdebebfffafb1379451dab7b40b073a Mon Sep 17 00:00:00 2001 From: Dan Field Date: Sun, 10 Jun 2018 12:47:14 -0400 Subject: [PATCH] make analyzer happy (flutter/engine#5499) --- engine/src/flutter/lib/ui/natives.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/natives.dart b/engine/src/flutter/lib/ui/natives.dart index 0a38460734..4dfb2e4816 100644 --- a/engine/src/flutter/lib/ui/natives.dart +++ b/engine/src/flutter/lib/ui/natives.dart @@ -36,11 +36,11 @@ void _setupHooks() { } void saveCompilationTrace(String filePath) { - final result = _saveCompilationTrace(); + final dynamic result = _saveCompilationTrace(); if (result is Error) throw result; - final file = new File(filePath); + final File file = new File(filePath); file.writeAsBytesSync(result); }