浏览代码

fix stupid typo

Neeraj Gupta 3 年之前
父节点
当前提交
a37cf2bd59
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/utils/trash_diff_fetcher.dart

+ 1 - 2
lib/utils/trash_diff_fetcher.dart

@@ -33,9 +33,8 @@ class TrashDiffFetcher {
         final diff = response.data["diff"] as List;
         final bool hasMore = response.data["hasMore"] as bool;
         final startTime = DateTime.now();
-        final trash = TrashFile();
-
         for (final item in diff) {
+          final trash = TrashFile();
           trash.createdAt = item['createdAt'];
           trash.updateAt = item['updatedAt'];
           latestUpdatedAtTime = max(latestUpdatedAtTime, trash.updateAt);