Code Review Optimierungen: Typsicherheit, Scanner-Performance, DB Upgrade Template, Division Guard

This commit is contained in:
Hermes (Server)
2026-07-24 08:33:30 +02:00
parent c7828b851c
commit b43ccd4c0d
8 changed files with 225 additions and 525 deletions
+1 -1
View File
@@ -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();