Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore[auth]: fix typo and lint fixes

Prateek Sunalcbda271c15c0
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();