Skip to content

Commit 9672f9a

Browse files
committed
refactor: stale local variables
1 parent fb091fb commit 9672f9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/browserstack/client/BrowserStackClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,11 @@ public void setProxy(@Nonnull final String proxyHost, @Nonnull final int proxyPo
172172
new UsernamePasswordCredentials(proxyUsername, proxyPassword);
173173
basicCredentialsProvider.setCredentials(proxyAuthScope, proxyAuthentication);
174174

175-
clientBuilder = clientBuilder.setDefaultCredentialsProvider(basicCredentialsProvider);
175+
clientBuilder.setDefaultCredentialsProvider(basicCredentialsProvider);
176176
}
177177

178178
final HttpClient client = clientBuilder.build();
179-
final ApacheHttpTransport transport = new ApacheHttpTransport(client);
180-
this.HTTP_TRANSPORT = transport;
179+
this.HTTP_TRANSPORT = new ApacheHttpTransport(client);
181180
this.requestFactory = newRequestFactory();
182181
}
183182

0 commit comments

Comments
 (0)