Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <[email protected]>
  • Loading branch information
andrewfg committed Feb 9, 2025
1 parent 19e5f4a commit c25269d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Set<ThingTypeUID> getSupportedThingTypeUIDs() {
}

private static @Nullable String getIpV4Address(ServiceInfo service) {
return Arrays.stream(service.getHostAddresses())
.filter(host -> VALID_IP_V4_ADDRESS.matcher(host).matches()).findFirst().orElse(null);
return Arrays.stream(service.getHostAddresses()).filter(host -> VALID_IP_V4_ADDRESS.matcher(host).matches())
.findFirst().orElse(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public String getServiceType() {
}

private static @Nullable String getIpV4Address(ServiceInfo service) {
return Arrays.stream(service.getHostAddresses())
.filter(host -> VALID_IP_V4_ADDRESS.matcher(host).matches()).findFirst().orElse(null);
return Arrays.stream(service.getHostAddresses()).filter(host -> VALID_IP_V4_ADDRESS.matcher(host).matches())
.findFirst().orElse(null);
}
}

0 comments on commit c25269d

Please sign in to comment.