Audit devicelab log streaming for nullability (#84820)

This commit is contained in:
Jenn Magder
2021-06-18 00:14:03 -07:00
committed by GitHub
parent 15301a6f44
commit 03034e9e4a
11 changed files with 66 additions and 74 deletions

View File

@@ -161,9 +161,8 @@ class _TaskRunner {
result = await futureResult;
} finally {
if (device != null && device.canStreamLogs) {
assert(sink != null);
await device.stopLoggingToSink();
await sink.close();
await sink?.close();
}
}