mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Refactor code for improved readability and consistency
- Simplified the formatting of path handling in `change_processor.rs` and `fs_snapshot.rs` by consolidating multiple lines into single lines for better clarity. - Updated test assertions in `two_way_sync.rs` to streamline the code and enhance maintainability. These changes enhance the overall readability of the codebase, making it easier to manage and understand.
This commit is contained in:
parent
cc2c828757
commit
85787f3452
4 changed files with 17 additions and 21 deletions
|
|
@ -1236,19 +1236,15 @@ impl JobThreadContext {
|
|||
// is dir/init.luau; the dir was
|
||||
// renamed so update the dir
|
||||
// portion.
|
||||
let init_name = old_path
|
||||
.file_name()
|
||||
.unwrap()
|
||||
.to_str()
|
||||
.unwrap();
|
||||
let init_name =
|
||||
old_path.file_name().unwrap().to_str().unwrap();
|
||||
to.join(init_name)
|
||||
} else {
|
||||
// Standalone file: new source
|
||||
// IS the `to` path.
|
||||
to.clone()
|
||||
};
|
||||
dedup_metadata_updates
|
||||
.push((sibling_ref, new_source));
|
||||
dedup_metadata_updates.push((sibling_ref, new_source));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue