Skip to content

Commit b907d64

Browse files
committed
Refactor file removal logic in iOS app configuration
- Simplified the file removal logic for the module map source in the `regroup_header_artifacts` function, ensuring clearer context handling during the removal process. - This change enhances code readability and maintains the existing functionality without introducing any new behavior. These modifications contribute to a cleaner and more maintainable codebase.
1 parent 01be1d4 commit b907d64

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • mopro-ffi/src/app_config

mopro-ffi/src/app_config/ios.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ pub fn regroup_header_artifacts(
264264
// (loaded via -Xcc -fmodule-map-file) is the sole definition for all
265265
// Xcode versions, avoiding duplicate-module errors on Xcode < 26.
266266
if modmap_src.exists() {
267-
fs::remove_file(&modmap_src)
268-
.with_context(|| format!("removing {modmap_src:?}"))?;
267+
fs::remove_file(&modmap_src).with_context(|| format!("removing {modmap_src:?}"))?;
269268
}
270269
if header_src.exists() {
271270
fs::rename(&header_src, target_dir.join(header_name))

0 commit comments

Comments
 (0)