Skip to content

Commit

Permalink
Format tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Jul 29, 2024
1 parent 6f2f151 commit 27ed18e
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 27ed18e

Please sign in to comment.