Skip to content

Commit

Permalink
chore(lint): spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Jan 30, 2025
1 parent 53cb5d1 commit 6433d4f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ private ClientFeaturesResponse getFeatureResponse(
}

private ClientFeaturesResponse followRedirect(HttpURLConnection request) throws IOException {
String newUrl = getLocationHeader(request).orElseThrow(() -> new IllegalStateException("No Location header found in redirect response."));
String newUrl =
getLocationHeader(request)
.orElseThrow(
() ->
new IllegalStateException(
"No Location header found in redirect response."));

request = openConnection(new URL(newUrl));
request.connect();
Expand Down

0 comments on commit 6433d4f

Please sign in to comment.