chore[auth]: fix typo and lint fixes
This commit is contained in:
parent
16c32cac90
commit
cbda271c15
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue