Skip to content

Commit

Permalink
fix: do not set local false if no local config
Browse files Browse the repository at this point in the history
  • Loading branch information
07souravkunda committed Aug 23, 2023
1 parent 549c8af commit d45c85c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ public void buildEnvVars(Map<String, String> env) {
}

String isLocalEnabled = localConfig != null ? "true" : "false";
env.put(BrowserStackEnvVars.BROWSERSTACK_LOCAL, "" + isLocalEnabled);
logEnvVar(BrowserStackEnvVars.BROWSERSTACK_LOCAL, isLocalEnabled);

if (isLocalEnabled.equals("true")) {
env.put(BrowserStackEnvVars.BROWSERSTACK_LOCAL, "" + isLocalEnabled);
logEnvVar(BrowserStackEnvVars.BROWSERSTACK_LOCAL, isLocalEnabled);
}

String localIdentifier =
(browserstackLocal != null) ? browserstackLocal.getLocalIdentifier() : "";
Expand Down

0 comments on commit d45c85c

Please sign in to comment.