mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
conflicts: replace "if let" with "let else"
This makes the code a bit easier to follow in my opinion.
This commit is contained in:
parent
e5cb9f94f6
commit
3c182687e8
1 changed files with 1 additions and 3 deletions
|
@ -300,9 +300,7 @@ fn materialize_conflict_hunks(
|
|||
format!("base #{}", base_index + 1)
|
||||
};
|
||||
|
||||
let right1 = if let Some(right1) = hunk.get_add(add_index) {
|
||||
right1
|
||||
} else {
|
||||
let Some(right1) = hunk.get_add(add_index) else {
|
||||
// If we have no more positive terms, emit the remaining negative
|
||||
// terms as snapshots.
|
||||
output.write_all(CONFLICT_MINUS_LINE)?;
|
||||
|
|
Loading…
Reference in a new issue