File tree Expand file tree Collapse file tree
tools/xtask-llm-benchmark/src/bench Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -482,15 +482,15 @@ impl Publisher for TypeScriptPublisher {
482482 if let Some ( dir) = nodejs_dir {
483483 prepend_paths. push ( dir) ;
484484 }
485- if let Some ( ref pnpm) = pnpm_exe {
486- if let Some ( parent) = pnpm. parent ( ) {
487- prepend_paths . push ( parent . to_path_buf ( ) ) ;
488- }
485+ if let Some ( ref pnpm) = pnpm_exe
486+ && let Some ( parent) = pnpm. parent ( )
487+ {
488+ prepend_paths . push ( parent . to_path_buf ( ) ) ;
489489 }
490- if let Some ( node) = node_exe {
491- if let Some ( parent) = node. parent ( ) {
492- prepend_paths . push ( parent . to_path_buf ( ) ) ;
493- }
490+ if let Some ( node) = node_exe
491+ && let Some ( parent) = node. parent ( )
492+ {
493+ prepend_paths . push ( parent . to_path_buf ( ) ) ;
494494 }
495495 let child_path = if !prepend_paths. is_empty ( ) {
496496 let mut paths = path_entries ( ) ;
You can’t perform that action at this time.
0 commit comments