Skip to content

Commit 76336dd

Browse files
committed
Minor refactor
1 parent 9f19513 commit 76336dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*/
1414
public class Local {
1515

16+
private static final List<String> IGNORE_KEYS = Arrays.asList("key", "logfile", "binarypath");
17+
1618
List<String> command;
1719
Map<String, String> startOptions;
1820
String binaryPath;
@@ -126,9 +128,8 @@ private void makeCommand(Map<String, String> options, String opCode) {
126128
command.add(options.get("key"));
127129

128130
for (Map.Entry<String, String> opt : options.entrySet()) {
129-
List<String> ignoreKeys = Arrays.asList("key", "logfile", "binarypath");
130131
String parameter = opt.getKey().trim();
131-
if (ignoreKeys.contains(parameter)) {
132+
if (IGNORE_KEYS.contains(parameter)) {
132133
continue;
133134
}
134135
if (parameters.get(parameter) != null) {

0 commit comments

Comments
 (0)