Skip to content

Commit fc653f0

Browse files
bradleyshepJulienLavocat
authored andcommitted
lints
1 parent 20f6d9c commit fc653f0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tools/xtask-llm-benchmark/src/bench/publishers.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)