Skip to content

Commit 577c719

Browse files
Test Userclaude
andcommitted
fix(weather_report): collapse nested if to satisfy clippy collapsible_if
Co-Authored-By: Ferrox <noreply@anthropic.com>
1 parent 3d7b070 commit 577c719

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • crates/terraphim_weather_report/src

crates/terraphim_weather_report/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,11 @@ fn print_tier_markdown(tier: &terraphim_weather_report::TierSection) {
350350
"| {} | {} | `{}` | {} | {} | {} |",
351351
cond, m.provider, m.model, m.cli, latency, cost
352352
);
353-
if let Some(detail) = &m.detail {
354-
if !detail.is_empty() && !detail.starts_with("probe skipped") {
355-
println!("| | | | | | *{}* |", detail.replace('|', "\\|"));
356-
}
353+
if let Some(detail) = &m.detail
354+
&& !detail.is_empty()
355+
&& !detail.starts_with("probe skipped")
356+
{
357+
println!("| | | | | | *{}* |", detail.replace('|', "\\|"));
357358
}
358359
}
359360
println!();

0 commit comments

Comments
 (0)