mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 03:22:59 +00:00
working_copy: move a duplicate statement out of match
block
This commit is contained in:
parent
b48b3780c8
commit
0dc5d967ae
1 changed files with 3 additions and 8 deletions
|
@ -722,15 +722,10 @@ impl TreeState {
|
|||
¤t_tree,
|
||||
&new_file_state,
|
||||
)?;
|
||||
match update {
|
||||
None => {
|
||||
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);
|
||||
}
|
||||
if let Some(tree_value) = update {
|
||||
tree_builder.set(sub_path.clone(), tree_value);
|
||||
}
|
||||
self.file_states.insert(sub_path, new_file_state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue