From 27ed18ef81e4e50f8ff59fd0958c95dd05ca4e69 Mon Sep 17 00:00:00 2001 From: Jonathan Hedley Date: Mon, 29 Jul 2024 15:24:01 +1000 Subject: [PATCH] Format tweak --- src/main/java/org/jsoup/helper/HttpConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jsoup/helper/HttpConnection.java b/src/main/java/org/jsoup/helper/HttpConnection.java index 87e0f4d06d..a4d6711129 100644 --- a/src/main/java/org/jsoup/helper/HttpConnection.java +++ b/src/main/java/org/jsoup/helper/HttpConnection.java @@ -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; } @@ -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