mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-15 20:24:27 +00:00
working_copy: move a duplicate statement out of match
block
This commit is contained in:
parent
b48b3780c8
commit
0dc5d967ae
@ -722,16 +722,11 @@ impl TreeState {
|
||||
¤t_tree,
|
||||
&new_file_state,
|
||||
)?;
|
||||
match update {
|
||||
None => {
|
||||
if let Some(tree_value) = update {
|
||||
tree_builder.set(sub_path.clone(), tree_value);
|
||||
}
|
||||
self.file_states.insert(sub_path, new_file_state);
|
||||
}
|
||||
Some(tree_value) => {
|
||||
self.file_states.insert(sub_path.clone(), new_file_state);
|
||||
tree_builder.set(sub_path, tree_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user