Skip to content

Commit e050988

Browse files
Update src/commands/mobile_app/upload.rs
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
1 parent 5b8fd2e commit e050988

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

src/commands/mobile_app/upload.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,9 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
102102
if is_zip_file(&byteview) && is_ipa_file(&byteview)? {
103103
debug!("Converting IPA file to XCArchive structure");
104104
let temp_dir = crate::utils::fs::TempDir::create()?;
105-
let xcarchive_path =
106-
ipa_to_xcarchive(path, &byteview, &temp_dir).with_context(|| {
107-
format!(
108-
"Failed to convert IPA to XCArchive for file {}",
109-
path.display()
110-
)
111-
})?;
112-
normalize_directory(&xcarchive_path).with_context(|| {
113-
format!("Failed to normalize XCArchive for file {}", path.display())
114-
})?
105+
ipa_to_xcarchive(path, &byteview, &temp_dir)
106+
.and_then(|path| normalize_directory(&path))
107+
.with_context(|| format!("Failed to process IPA file {}", path.display()))?
115108
} else {
116109
normalize_file(path, &byteview).with_context(|| {
117110
format!(

0 commit comments

Comments
 (0)