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 {
104
104
EntityInfo b, {
105
105
bool isDirectory = false ,
106
106
}) {
107
- var item1 = a;
108
- var item2 = b;
107
+ EntityInfo item1 = a;
108
+ EntityInfo item2 = b;
109
109
110
110
if (! ascending) {
111
111
item2 = a;
Original file line number Diff line number Diff line change
1
+ import 'dart:async' ;
2
+
1
3
import 'package:files/backend/database/model.dart' ;
2
4
import 'package:files/backend/providers.dart' ;
3
5
@@ -13,8 +15,9 @@ class StatCacheProxy {
13
15
return stat;
14
16
}
15
17
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;
19
22
}
20
23
}
You can’t perform that action at this time.
0 commit comments