mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Refactor path handling in tests for encoded names consistency
- Consolidated multiple lines of code into single statements for improved readability in test cases related to encoded names. - Updated the logic in various tests to ensure consistent handling of file paths, particularly for encoded module and script names. - Enhanced clarity in test assertions by streamlining path construction, contributing to better maintainability and understanding of the test suite.
This commit is contained in:
parent
5b2ea2a23f
commit
206ffd3720
3 changed files with 17 additions and 24 deletions
|
|
@ -657,9 +657,8 @@ impl JobThreadContext {
|
|||
// If a rename handler already moved the file,
|
||||
// use the new path instead of the stale
|
||||
// instigating_source path.
|
||||
let effective_path = overridden_source_path
|
||||
.as_deref()
|
||||
.unwrap_or(path.as_path());
|
||||
let effective_path =
|
||||
overridden_source_path.as_deref().unwrap_or(path.as_path());
|
||||
|
||||
if old_is_script && new_is_script && effective_path.exists() {
|
||||
// Script-to-script transition: rename the file extension.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue