prefer_const_declarations on local variables (#14358)

This commit is contained in:
Alexandre Ardhuin
2018-02-01 07:51:26 +01:00
committed by GitHub
parent b0e17949aa
commit 841d5d7bd5
129 changed files with 791 additions and 791 deletions

View File

@@ -683,7 +683,7 @@ class _AdbLogReader extends DeviceLogReader {
_timeOrigin = null;
runCommand(device.adbCommandForDevice(args)).then<Null>((Process process) {
_process = process;
final Utf8Decoder decoder = const Utf8Decoder(allowMalformed: true);
const Utf8Decoder decoder = const Utf8Decoder(allowMalformed: true);
_process.stdout.transform(decoder).transform(const LineSplitter()).listen(_onLine);
_process.stderr.transform(decoder).transform(const LineSplitter()).listen(_onLine);
_process.exitCode.whenComplete(() {