Skip to content

Commit 44c8296

Browse files
committed
test clang format
1 parent 288be7c commit 44c8296

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/thealgorithms/datastructures/crdt/LWWElementSet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
/**

src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.thealgorithms.datastructures.crdt;
22

3+
import java.time.Instant;
34
import org.junit.jupiter.api.Test;
45

5-
import java.time.Instant;
66

77
import static org.junit.jupiter.api.Assertions.assertFalse;
88
import static org.junit.jupiter.api.Assertions.assertTrue;

0 commit comments

Comments
 (0)