File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/commands/react_native Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -373,10 +373,15 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
373
373
Ok ( Some ( plist) ) => {
374
374
// Successfully discovered and parsed Info.plist
375
375
let dist_string = plist. build ( ) . to_string ( ) ;
376
- let release_string = format ! ( "{}@{}+{}" , plist. bundle_id( ) , plist. version( ) , dist_string) ;
376
+ let release_string = format ! (
377
+ "{}@{}+{}" ,
378
+ plist. bundle_id( ) ,
379
+ plist. version( ) ,
380
+ dist_string
381
+ ) ;
377
382
info ! ( "Parse result from Info.plist: {:?}" , & plist) ;
378
383
( Some ( dist_string) , Some ( release_string) )
379
- } ,
384
+ }
380
385
_ => {
381
386
bail ! ( "Info.plist was not found or an parsing error occurred" ) ;
382
387
}
@@ -556,9 +561,7 @@ pub fn wrap_call() -> Result<()> {
556
561
if let ( Ok ( packager_sourcemap) , Ok ( mut hermes_sourcemap) ) =
557
562
( packager_sourcemap_result, hermes_sourcemap_result)
558
563
{
559
- if hermes_sourcemap. get ( "debugId" ) . is_none ( )
560
- && hermes_sourcemap. get ( "debug_id" ) . is_none ( )
561
- {
564
+ if !hermes_sourcemap. contains_key ( "debug_id" ) {
562
565
if let Some ( debug_id) = packager_sourcemap
563
566
. get ( "debugId" )
564
567
. or_else ( || packager_sourcemap. get ( "debug_id" ) )
You can’t perform that action at this time.
0 commit comments