Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 27, 2025
1 parent 0060bda commit 33f4454
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/app/browser/window/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,10 @@ impl Tab {
let window_action = window_action.clone();
let index = index.clone();
move |tab_view| {
update_actions(
tab_view,
tab_view.selected_page().map(|tab_page| {
tab_page.set_needs_attention(false);
tab_page
}),
&index,
&window_action,
)
if let Some(tab_page) = tab_view.selected_page() {
tab_page.set_needs_attention(false);
}
update_actions(tab_view, tab_view.selected_page(), &index, &window_action)
}
});

Expand Down

0 comments on commit 33f4454

Please sign in to comment.