We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c45518a commit 8ade40fCopy full SHA for 8ade40f
1 file changed
lib/services/download_manager.dart
@@ -562,8 +562,7 @@ class DownloadManager {
562
563
int contentLength = 0;
564
if (response.headers.value('content-length') != null) {
565
- contentLength =
566
- int.parse(response.headers.value('content-length')!);
+ contentLength = int.parse(response.headers.value('content-length')!);
567
}
568
569
int total = received + contentLength;
@@ -611,8 +610,7 @@ class DownloadManager {
611
610
if (e is DioException && e.type == DioExceptionType.cancel) {
612
rethrow;
613
614
- _logger.error('Download stream error',
615
- tag: 'DownloadManager', error: e);
+ _logger.error('Download stream error', tag: 'DownloadManager', error: e);
616
return false;
617
} finally {
618
dio.close();
0 commit comments