From cbda271c15c0fd71c1e657073428ddf4cc204335 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Wed, 8 May 2024 19:59:36 +0530 Subject: [PATCH] chore[auth]: fix typo and lint fixes --- mobile/lib/utils/file_uploader.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dart index 6ed0aaeb79..ad10153035 100644 --- a/mobile/lib/utils/file_uploader.dart +++ b/mobile/lib/utils/file_uploader.dart @@ -341,7 +341,8 @@ class FileUploader { await file.delete(); } else { _logger.info( - 'Skipping file $fileName as it was attempted recently on $lastAttemptTime'); + 'Skipping file $fileName as it was attempted recently on $lastAttemptTime', + ); } } } @@ -466,7 +467,6 @@ class FileUploader { } final tempDirectory = Configuration.instance.getTempDirectory(); - final uploadPrefix = '$tempDirectory$uploadTempFilePrefix'; MediaUploadData? mediaUploadData; mediaUploadData = await getUploadDataFromEnteFile(file); @@ -918,7 +918,7 @@ class FileUploader { // for upload. On iOS, only remove the file from photo_manager/app cache // when upload is either completed or there's a tempFailure // Shared Media should only be cleared when the upload - // succeeds.Ha + // succeeds. if ((Platform.isIOS && (uploadCompleted || uploadHardFailure)) || (uploadCompleted && file.isSharedMediaToAppSandbox)) { await mediaUploadData.sourceFile?.delete();