Skip to content

Commit f5ef775

Browse files
committed
refactor: remove redundant variable
1 parent 06661b9 commit f5ef775

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/io/weaviate/client6/v1/internal/oidc/nimbus/HttpResponseParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ static OIDCTokens parse(HTTPResponse httpResponse) throws ParseException {
5252

5353
var error = fromErrorResponse(response.toErrorResponse());
5454
if (!error.isComplete()) {
55-
var error2 = fromHttpResponse(httpResponse);
56-
error = error2;
55+
error = fromHttpResponse(httpResponse);
5756
}
5857
throw new WeaviateOAuthException("%s (code=%s)".formatted(
5958
error.description(),

0 commit comments

Comments
 (0)