Skip to content

Commit

Permalink
fix: StatCacheProxy get
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Oct 28, 2024
1 parent 577d9e7 commit a17770a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/backend/stat_cache_proxy.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:files/backend/database/model.dart';
import 'package:files/backend/providers.dart';

Expand All @@ -13,8 +15,9 @@ class StatCacheProxy {
return stat;
}

// TODO(@HrX03): is this correct?
// ignore: unawaited_futures
return _runtimeCache[path]!..fetchUpdate();
final runtimeCache = _runtimeCache[path];
await runtimeCache!.fetchUpdate();

return runtimeCache;
}
}

0 comments on commit a17770a

Please sign in to comment.