make analyzer happy (flutter/engine#5499)

This commit is contained in:
Dan Field
2018-06-10 12:47:14 -04:00
committed by GitHub
parent e90ea73260
commit 5d78c7447b

View File

@@ -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);
}