File tree 2 files changed +2
-3
lines changed
main/java/com/thealgorithms/datastructures/crdt
test/java/com/thealgorithms/datastructures/crdt 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) {
69
69
Element <T > inAddSet = addSet .get (key );
70
70
Element <T > inRemoveSet = removeSet .get (key );
71
71
72
- return inAddSet != null
73
- && (inRemoveSet == null || inAddSet .timestamp .isAfter (inRemoveSet .timestamp ));
72
+ return inAddSet != null && (inRemoveSet == null || inAddSet .timestamp .isAfter (inRemoveSet .timestamp ));
74
73
}
75
74
76
75
/**
Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .datastructures .crdt ;
2
2
3
+ import java .time .Instant ;
3
4
import org .junit .jupiter .api .Test ;
4
5
5
- import java .time .Instant ;
6
6
7
7
import static org .junit .jupiter .api .Assertions .assertFalse ;
8
8
import static org .junit .jupiter .api .Assertions .assertTrue ;
You can’t perform that action at this time.
0 commit comments