Skip to content

Commit b051b85

Browse files
committed
chore: code cleaning
1 parent e8a49e9 commit b051b85

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public class RobotServerService implements IRobotServerService {
121121
private IRobotProxyService executorService;
122122

123123
private static Map<String, Boolean> apkAlreadyPrepare = new HashMap<>();
124-
private static int totocpt = 0;
125124

126125
private static final Logger LOG = LogManager.getLogger(RobotServerService.class);
127126
// Proxy default config. (Should never be used as default config is inserted into database)
@@ -298,13 +297,12 @@ public void startServer(TestCaseExecution execution) throws CerberusException {
298297
LOG.debug("Hub URL :{}", hubUrl);
299298
URL url = new URL(hubUrl);
300299

301-
HttpCommandExecutor executor = null;
302300
boolean isProxy = proxyService.useProxy(hubUrl, system);
303301

304302
// Timeout Management
305303
int robotTimeout = parameterService.getParameterIntegerByKey("cerberus_robot_timeout", system, 60000);
306304

307-
ClientConfig clientConfig = null;
305+
ClientConfig clientConfig;
308306

309307
// Proxy Management
310308
if (isProxy) {
@@ -329,7 +327,7 @@ public void startServer(TestCaseExecution execution) throws CerberusException {
329327
.baseUri(url.toURI());
330328
}
331329

332-
executor = new HttpCommandExecutor(clientConfig);
330+
HttpCommandExecutor executor = new HttpCommandExecutor(clientConfig);
333331

334332
// SetUp Driver
335333
LOG.debug("Set Driver");
@@ -530,9 +528,7 @@ private String getSession(WebDriver driver, String robotProvider) {
530528
}
531529

532530
private String getSession(WebDriver driver) {
533-
String session = "";
534-
session = ((RemoteWebDriver) driver).getSessionId().toString();
535-
return session;
531+
return ((RemoteWebDriver) driver).getSessionId().toString();
536532
}
537533

538534
private String guessRobotProvider(String host) {

0 commit comments

Comments
 (0)