Fix analyzer warnings (#7523)

I see these errors in Atom on my Mac. I'm not sure why they're not being
picked up by the bots.
This commit is contained in:
Adam Barth
2017-01-18 13:18:09 -08:00
committed by GitHub
parent 0ce9917fb2
commit 40e305dc2d
4 changed files with 5 additions and 5 deletions

View File

@@ -285,7 +285,7 @@ class FlutterDriver {
if (_printCommunication)
_log.info(message);
if (_logCommunicationToFile) {
f.File file = fs.file(p.join(testOutputsDirectory, 'flutter_driver_commands_${_driverId}.log'));
f.File file = fs.file(p.join(testOutputsDirectory, 'flutter_driver_commands_$_driverId.log'));
file.createSync(recursive: true); // no-op if file exists
file.writeAsStringSync('${new DateTime.now()} $message\n', mode: f.FileMode.APPEND, flush: true);
}