File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -444,20 +444,14 @@ pub trait SeleniumManager {
444
444
) ) ;
445
445
let mut browser_version: Option < String > = None ;
446
446
for driver_version_command in commands. into_iter ( ) {
447
- let output = if driver_version_command. display ( ) . starts_with ( "(Get-" ) {
448
- match run_powershell_command_with_log ( self . get_logger ( ) , driver_version_command) {
449
- Ok ( out) => out,
450
- Err ( _e) => continue ,
451
- }
447
+ let command_result = if driver_version_command. display ( ) . starts_with ( "(Get-" ) {
448
+ run_powershell_command_with_log ( self . get_logger ( ) , driver_version_command)
452
449
} else {
453
- match run_shell_command_with_log (
454
- self . get_logger ( ) ,
455
- self . get_os ( ) ,
456
- driver_version_command,
457
- ) {
458
- Ok ( out) => out,
459
- Err ( _e) => continue ,
460
- }
450
+ run_shell_command_with_log ( self . get_logger ( ) , self . get_os ( ) , driver_version_command)
451
+ } ;
452
+ let output = match command_result {
453
+ Ok ( out) => out,
454
+ Err ( _) => continue ,
461
455
} ;
462
456
463
457
let full_browser_version = parse_version ( output, self . get_logger ( ) ) . unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments