Skip to content

Commit

Permalink
chore: spotless format
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Jul 29, 2024
1 parent 60a135c commit df165d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/getunleash/util/ConstraintMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public static List<Constraint> mergeConstraints(
Optional.ofNullable(strategy.getConstraints())
.orElseGet(Collections::emptyList),
Optional.ofNullable(strategy.getSegments())
.orElseGet(Collections::emptyList)
.stream()
.orElseGet(Collections::emptyList).stream()
.map(repository::getSegment)
.map(s -> s == null ? DENY_SEGMENT : s)
.map(Segment::getConstraints)
Expand Down
4 changes: 1 addition & 3 deletions src/test/java/io/getunleash/util/IpAddressMatcherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

import org.junit.jupiter.api.Test;

/**
* @author Luke Taylor
*/
/** @author Luke Taylor */
class IpAddressMatcherTest {
private final IpAddressMatcher v6matcher = new IpAddressMatcher("fe80::21f:5bff:fe33:bd68");
private final IpAddressMatcher v4matcher = new IpAddressMatcher("192.168.1.104");
Expand Down

0 comments on commit df165d5

Please sign in to comment.