File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
javascript/selenium-webdriver Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -514,22 +514,22 @@ class ServiceBuilder extends remote.DriverService.Builder {
514514 * @return {!DriverService } A new driver service instance.
515515 */
516516 build ( ) {
517- let port = this . options_ . port || findFreePort ( ) ;
517+ let port = this . options_ . port || findFreePort ( )
518518 let argsPromise = Promise . resolve ( port ) . then ( ( port ) => {
519519 // Start with the default --port argument.
520- let args = this . options_ . args . concat ( `--port=${ port } ` ) ;
520+ let args = this . options_ . args . concat ( `--port=${ port } ` )
521521 // If the "--connect-existing" flag is not set, add the websocket port.
522- if ( ! this . options_ . args . some ( arg => arg === '--connect-existing' ) ) {
523- return findFreePort ( ) . then ( wsPort => {
524- args . push ( `--websocket-port=${ wsPort } ` ) ;
525- return args ;
526- } ) ;
522+ if ( ! this . options_ . args . some ( ( arg ) => arg === '--connect-existing' ) ) {
523+ return findFreePort ( ) . then ( ( wsPort ) => {
524+ args . push ( `--websocket-port=${ wsPort } ` )
525+ return args
526+ } )
527527 }
528- return args ;
529- } ) ;
528+ return args
529+ } )
530530
531- let options = Object . assign ( { } , this . options_ , { args : argsPromise , port } ) ;
532- return new remote . DriverService ( this . exe_ , options ) ;
531+ let options = Object . assign ( { } , this . options_ , { args : argsPromise , port } )
532+ return new remote . DriverService ( this . exe_ , options )
533533 }
534534}
535535
You can’t perform that action at this time.
0 commit comments