Explorar o código

Formatting changes

Neeraj Gupta %!s(int64=4) %!d(string=hai) anos
pai
achega
2559e90352
Modificáronse 3 ficheiros con 2 adicións e 7 borrados
  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
 
 // 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> alreadyDeletedIDs = []; // to ignore already deleted files
   for (final file in files) {
-    if (file.localID != null) {
+    if (file.localID != null)  {
       final asset = await file.getAsset();
       if (asset == null || !(await asset.exists)) {
         _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),
       fileExtension: fileExtension,
     );
-    _logger.info("File Put in cacheManager " +
-        file.uploadedFileID.toString() +
-        "  " +
-        cachedFile.uri.toString());
-
     outputFile.deleteSync();
     fileDownloadsInProgress.remove(file.uploadedFileID);
     return cachedFile;