Code Review Optimierungen: Typsicherheit, Scanner-Performance, DB Upgrade Template, Division Guard
This commit is contained in:
@@ -100,7 +100,7 @@ class DownloadService {
|
||||
await for (final chunk in fileStream) {
|
||||
sink.add(chunk);
|
||||
downloaded += chunk.length;
|
||||
_fortschritt = downloaded / total;
|
||||
_fortschritt = total > 0 ? downloaded / total : 0.0;
|
||||
}
|
||||
await sink.flush();
|
||||
await sink.close();
|
||||
|
||||
Reference in New Issue
Block a user