Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cachapa committed Nov 2, 2024
1 parent ff1c6ff commit 65d0e6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lib/crdt.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library crdt;

export 'src/crdt.dart';
export 'src/hlc.dart';
export 'src/types.dart';
2 changes: 0 additions & 2 deletions lib/map_crdt.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library map_crdt;

export 'src/map_crdt/map_crdt.dart';
export 'src/map_crdt/map_crdt_base.dart';
export 'src/map_crdt/record.dart';
5 changes: 2 additions & 3 deletions lib/src/map_crdt/map_crdt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ class MapCrdt extends MapCrdtBase {
bool get isNotEmpty => !isEmpty;

/// Instantiate a MapCrdt object with empty [tables].
MapCrdt(Iterable<String> tables)
MapCrdt(super.tables)
: _recordMaps = {for (final table in tables.toSet()) table: {}},
_changeControllers = {
for (final table in tables.toSet())
table: StreamController.broadcast()
},
assert(tables.isNotEmpty),
super(tables);
assert(tables.isNotEmpty);

@override
Record? getRecord(String table, String key) => _recordMaps[table]![key];
Expand Down

0 comments on commit 65d0e6a

Please sign in to comment.