From 971484e795d7930c8cda87bcdd72ebe66a8152d0 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 11 May 2022 10:21:25 +0530 Subject: [PATCH] formatting changes --- lib/utils/file_util.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/utils/file_util.dart b/lib/utils/file_util.dart index ee5987f8d..333548bbf 100644 --- a/lib/utils/file_util.dart +++ b/lib/utils/file_util.dart @@ -134,8 +134,7 @@ Future getFileFromServer( return fileDownloadsInProgress[downloadID]; } -Future isFileCached(ente.File file, - {bool liveVideo = false}) async { +Future isFileCached(ente.File file, {bool liveVideo = false}) async { final cacheManager = (file.fileType == FileType.video || liveVideo) ? VideoCacheManager.instance : DefaultCacheManager(); @@ -160,7 +159,7 @@ Future _getLivePhotoFromServer(ente.File file, return null; } return needLiveVideo ? livePhoto.video : livePhoto.image; - } catch (e,s) { + } catch (e, s) { _logger.warning("live photo get failed", e, s); livePhotoDownloadsTracker.remove(downloadID); return null; @@ -226,8 +225,7 @@ Future<_LivePhoto> _downloadLivePhoto(ente.File file, } return _LivePhoto(imageFileCache, videoFileCache); }).catchError((e) { - _logger.warning( - "failed to download live photos : ${file.tag()}", e); + _logger.warning("failed to download live photos : ${file.tag()}", e); throw e; }); }