Skip to content

Commit

Permalink
refactor: remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
altsem committed Feb 11, 2024
1 parent d420227 commit c253b9c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/screen/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,13 @@ pub(crate) fn create(config: &Config, size: Rect) -> Res<Screen> {
.collect::<Vec<_>>();

let items = rebase_status
.map(|rebase| {
let rebase = rebase;
Item {
id: "rebase_status".into(),
display: Text::styled(
format!("Rebasing {} onto {}", rebase.head_name, &rebase.onto),
Style::new().fg(CURRENT_THEME.section).bold(),
),
..Default::default()
}
.map(|rebase| Item {
id: "rebase_status".into(),
display: Text::styled(
format!("Rebasing {} onto {}", rebase.head_name, &rebase.onto),
Style::new().fg(CURRENT_THEME.section).bold(),
),
..Default::default()
})
.or_else(|| {
Some(Item {
Expand Down

0 comments on commit c253b9c

Please sign in to comment.