We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577d9e7 commit a17770aCopy full SHA for a17770a
lib/backend/stat_cache_proxy.dart
@@ -1,3 +1,5 @@
1
+import 'dart:async';
2
+
3
import 'package:files/backend/database/model.dart';
4
import 'package:files/backend/providers.dart';
5
@@ -13,8 +15,9 @@ class StatCacheProxy {
13
15
return stat;
14
16
}
17
- // TODO(@HrX03): is this correct?
- // ignore: unawaited_futures
18
- return _runtimeCache[path]!..fetchUpdate();
+ final runtimeCache = _runtimeCache[path];
19
+ await runtimeCache!.fetchUpdate();
20
21
+ return runtimeCache;
22
23
0 commit comments