fix lints
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
*/
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:weblibre/data/database/extensions/database_table_size.dart';
|
||||
import 'package:weblibre/features/user/data/icon_cache_marker.dart';
|
||||
import 'package:weblibre/features/user/data/database/daos/cache.drift.dart';
|
||||
import 'package:weblibre/features/user/data/database/database.dart';
|
||||
import 'package:weblibre/features/user/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/user/data/icon_cache_marker.dart';
|
||||
|
||||
@DriftAccessor()
|
||||
class CacheDao extends DatabaseAccessor<UserDatabase> with $CacheDaoMixin {
|
||||
|
||||
@@ -67,7 +67,7 @@ class SearchTokensDao extends DatabaseAccessor<UserDatabase> {
|
||||
|
||||
/// Release any reservation older than [maxAge] — covers crashes mid-flight.
|
||||
/// Returns the number of rows released.
|
||||
Future<int> releaseStaleReservations(Duration maxAge) async {
|
||||
Future<int> releaseStaleReservations(Duration maxAge) {
|
||||
final cutoff = DateTime.now().subtract(maxAge);
|
||||
return (update(db.searchTokens)..where(
|
||||
(t) =>
|
||||
|
||||
@@ -261,7 +261,7 @@ class UBlockAssetsRegistry {
|
||||
return count;
|
||||
}
|
||||
|
||||
static UBlockAssetsRegistry fromJson(Map<String, dynamic> json) {
|
||||
factory UBlockAssetsRegistry.fromJson(Map<String, dynamic> json) {
|
||||
final entries = <String, UBlockAssetEntry>{};
|
||||
for (final entry in json.entries) {
|
||||
if (entry.value is Map<String, dynamic>) {
|
||||
|
||||
Reference in New Issue
Block a user