Fix proxy null check (#836)

This commit is contained in:
Alex 2024-07-04 22:08:45 +02:00 committed by GitHub
parent 060a4ee6df
commit 002754f3af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,9 +32,7 @@ public class HTTPUtils {
}
public static <T> T makeRequest(@Nullable ProxyInfo proxy, URI uri, Object input, Class<T> responseType) throws IOException {
if (proxy == null) {
throw new IllegalArgumentException("Proxy cannot be null.");
} else if (uri == null) {
if (uri == null) {
throw new IllegalArgumentException("URI cannot be null.");
}