File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ class CancelableFsFetch {
104104 EntityInfo b, {
105105 bool isDirectory = false ,
106106 }) {
107- var item1 = a;
108- var item2 = b;
107+ EntityInfo item1 = a;
108+ EntityInfo item2 = b;
109109
110110 if (! ascending) {
111111 item2 = a;
Original file line number Diff line number Diff line change 1+ import 'dart:async' ;
2+
13import 'package:files/backend/database/model.dart' ;
24import 'package:files/backend/providers.dart' ;
35
@@ -13,8 +15,9 @@ class StatCacheProxy {
1315 return stat;
1416 }
1517
16- // TODO(@HrX03): is this correct?
17- // ignore: unawaited_futures
18- return _runtimeCache[path]! ..fetchUpdate ();
18+ final runtimeCache = _runtimeCache[path];
19+ await runtimeCache! .fetchUpdate ();
20+
21+ return runtimeCache;
1922 }
2023}
You can’t perform that action at this time.
0 commit comments