Skip to content

Commit

Permalink
Format tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy authored and Isira-Seneviratne committed Aug 11, 2024
1 parent 2b4fde2 commit e8b6664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/helper/HttpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public T addHeader(String name, @Nullable String value) {
Validate.notEmptyParam(name, "name");

headers.computeIfAbsent(name, Functions.listFunction())
.add(value == null ? "" : value);
.add(value == null ? "" : value);

return (T) this;
}
Expand Down Expand Up @@ -491,7 +491,7 @@ public boolean hasHeaderWithValue(String name, String value) {
Validate.notEmpty(name);
Validate.notEmpty(value);
return headers.getOrDefault(name, Collections.emptyList()).stream()
.anyMatch(value::equalsIgnoreCase);
.anyMatch(value::equalsIgnoreCase);
}

@Override
Expand Down

0 comments on commit e8b6664

Please sign in to comment.