Skip to content

Commit a17770a

Browse files
committed
fix: StatCacheProxy get
1 parent 577d9e7 commit a17770a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/backend/stat_cache_proxy.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:async';
2+
13
import 'package:files/backend/database/model.dart';
24
import '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
}

0 commit comments

Comments
 (0)