diff options
| author | Mel <einebeere@gmail.com> | 2021-10-10 21:35:47 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2021-10-10 21:35:47 +0200 |
| commit | d57e10663a2f0c6999c04726fac9a9a18ba4a97d (patch) | |
| tree | 5b43d6c8c5cd1cec7d2ecadd4cde662f7b39a293 /src/actions/update.rs | |
| parent | b7650c22dbb42a7eeb55d148610c893a74280369 (diff) | |
| download | ka-d57e10663a2f0c6999c04726fac9a9a18ba4a97d.tar.zst ka-d57e10663a2f0c6999c04726fac9a9a18ba4a97d.zip | |
Format
Diffstat (limited to 'src/actions/update.rs')
| -rw-r--r-- | src/actions/update.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/update.rs b/src/actions/update.rs index 05379c1..081be72 100644 --- a/src/actions/update.rs +++ b/src/actions/update.rs @@ -97,13 +97,13 @@ fn get_new_history_for_file<FS: Fs>( let changes = ContentChange::diff(&old_content, &new_content); - if !changes.is_empty() { + if !changes.is_empty() { let mut new_history = file_history; new_history.add_change(FileChange { change_index: cursor + 1, variant: FileChangeVariant::Updated(changes), }); - + Ok(Some((history_file, new_history))) } else { Ok(None) |
