Skip to content

Commit cbf2498

Browse files
committed
linter fix
1 parent da33238 commit cbf2498

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/start.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,13 @@ async function start(_opts) {
224224
debug('Spawning Selenium Server process', opts.javaPath, args);
225225

226226
if (opts.onlyDriver && opts.drivers[opts.onlyDriver]) {
227-
const chromeDriverProcess = await startDriver(
228-
fsPaths[opts.onlyDriver].installPath,
229-
[...opts.drivers[opts.onlyDriver].onlyDriverArgs, ...(!opts.drivers[opts.onlyDriver].onlyDriverArgs.some(item => item.includes('--port=')) && opts.onlyDriver !== 'firefox' ? [`--port=9515`] : [])]
230-
);
227+
const chromeDriverProcess = await startDriver(fsPaths[opts.onlyDriver].installPath, [
228+
...opts.drivers[opts.onlyDriver].onlyDriverArgs,
229+
...(!opts.drivers[opts.onlyDriver].onlyDriverArgs.some((item) => item.includes('--port=')) &&
230+
opts.onlyDriver !== 'firefox'
231+
? [`--port=9515`]
232+
: []),
233+
]);
231234

232235
return chromeDriverProcess;
233236
// eslint-disable-next-line no-else-return

0 commit comments

Comments
 (0)