Skip to content

Commit

Permalink
another clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenfield committed Dec 16, 2024
1 parent d31569b commit bb1226a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions interpreter/src/ratatui_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,11 @@ fn append_lines<'a>(
real_last_chunk.push_span(this_span);
if line_iter.peek().is_some() {
lines.push(real_last_chunk);
} else if string.ends_with('\n') {
lines.push(real_last_chunk);
return None;
} else {
if string.ends_with('\n') {
lines.push(real_last_chunk);
return None;
} else {
return Some(real_last_chunk);
}
return Some(real_last_chunk);
}
}

Expand Down

0 comments on commit bb1226a

Please sign in to comment.