File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments