Skip to content

Commit

Permalink
Fix proxy null check (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE authored Jul 4, 2024
1 parent 060a4ee commit 002754f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ private 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.");
}

Expand Down

0 comments on commit 002754f

Please sign in to comment.