瀏覽代碼

Formatting changes

Neeraj Gupta 4 年之前
父節點
當前提交
2559e90352
共有 3 個文件被更改,包括 2 次插入7 次删除
  1. 1 1
      lib/core/constants.dart
  2. 1 1
      lib/utils/delete_file_util.dart
  3. 0 5
      lib/utils/file_util.dart

+ 1 - 1
lib/core/constants.dart

@@ -13,4 +13,4 @@ const int kAndroid11SDKINT = 30;
 const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
 const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
 
 
 // used to identify which ente file are available in app cache
 // used to identify which ente file are available in app cache
-const String kAppCacheIdentifier = 'ente-cache://';
+const String kAppCacheIdentifier = 'ente-cache://';

+ 1 - 1
lib/utils/delete_file_util.dart

@@ -30,7 +30,7 @@ Future<void> deleteFilesFromEverywhere(
   final List<String> localIDs = [];
   final List<String> localIDs = [];
   final List<String> alreadyDeletedIDs = []; // to ignore already deleted files
   final List<String> alreadyDeletedIDs = []; // to ignore already deleted files
   for (final file in files) {
   for (final file in files) {
-    if (file.localID != null) {
+    if (file.localID != null)  {
       final asset = await file.getAsset();
       final asset = await file.getAsset();
       if (asset == null || !(await asset.exists)) {
       if (asset == null || !(await asset.exists)) {
         _logger.warning("Already deleted " + file.toString());
         _logger.warning("Already deleted " + file.toString());

+ 0 - 5
lib/utils/file_util.dart

@@ -156,11 +156,6 @@ Future<io.File> _downloadAndDecrypt(
       maxAge: Duration(days: 365),
       maxAge: Duration(days: 365),
       fileExtension: fileExtension,
       fileExtension: fileExtension,
     );
     );
-    _logger.info("File Put in cacheManager " +
-        file.uploadedFileID.toString() +
-        "  " +
-        cachedFile.uri.toString());
-
     outputFile.deleteSync();
     outputFile.deleteSync();
     fileDownloadsInProgress.remove(file.uploadedFileID);
     fileDownloadsInProgress.remove(file.uploadedFileID);
     return cachedFile;
     return cachedFile;