Code cleanup

This commit is contained in:
Yannick Mauray 2021-10-27 21:36:29 +02:00
parent 81f278031e
commit 334cd71b37
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
1 changed files with 0 additions and 3 deletions

View File

@ -51,10 +51,8 @@ class _DownloaderState extends State<Downloader> {
var matches = macRecoveryPattern.allMatches(line).toList();
if (matches.isNotEmpty) {
var size = matches[0].group(1);
print(size);
if (size != null) {
var value = double.parse(size);
print(value);
controller.add(value);
}
}
@ -75,7 +73,6 @@ class _DownloaderState extends State<Downloader> {
}
process.exitCode.then((value) {
print("Process exited with exit code $value");
controller.close();
setState(() {
_downloadFinished = true;