File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
main/java/com/thealgorithms/datastructures/crdt
test/java/com/thealgorithms/datastructures/crdt Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ public boolean lookup(T key) {
6969 Element <T > inAddSet = addSet .get (key );
7070 Element <T > inRemoveSet = removeSet .get (key );
7171
72- return inAddSet != null
73- && (inRemoveSet == null || inAddSet .timestamp .isAfter (inRemoveSet .timestamp ));
72+ return inAddSet != null && (inRemoveSet == null || inAddSet .timestamp .isAfter (inRemoveSet .timestamp ));
7473 }
7574
7675 /**
Original file line number Diff line number Diff line change 11package com .thealgorithms .datastructures .crdt ;
22
3+ import java .time .Instant ;
34import org .junit .jupiter .api .Test ;
45
5- import java .time .Instant ;
66
77import static org .junit .jupiter .api .Assertions .assertFalse ;
88import static org .junit .jupiter .api .Assertions .assertTrue ;
You can’t perform that action at this time.
0 commit comments