Commit 42875c9
committed
Clarify
`to_native_path_on_windows` already called `to_windows_separators`
to do what would otherwise repeat logic of `to_windows_separators`,
but `to_unix_separators_on_windows` repeated the code of
`to_unix_separators`. Having `to_unix_separators_on_windows` call
`to_unix_separators` instead of repeating its logic seems slightly
easier to read, elucidates the relationship between the several
functions, and might be slightly more maintainable.
This is purely a refactoring, which should not change the effect.
It should also not change performance, since the compiler should be
able to inline the call in circumstnaces where that would help.to_unix_separators{,_on_windows} relationship1 parent 0286351 commit 42875c9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments