Skip to content

Commit dbf2691

Browse files
committed
Fix remaining collapsible_if lint in main.rs
1 parent 3d469b0 commit dbf2691

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ async fn main() -> Result<()> {
272272

273273
// Check for update notification (only for non-interactive mode)
274274
// Use short timeout so we don't delay exit if check is slow
275-
if is_terminal::is_terminal(std::io::stderr()) {
276-
if let Ok(Some(new_version)) = update_rx.recv_timeout(Duration::from_millis(100)) {
277-
update::print_update_notice(&new_version);
278-
}
275+
if is_terminal::is_terminal(std::io::stderr())
276+
&& let Ok(Some(new_version)) = update_rx.recv_timeout(Duration::from_millis(100))
277+
{
278+
update::print_update_notice(&new_version);
279279
}
280280

281281
result

0 commit comments

Comments
 (0)