Skip to content
Prev Previous commit
Next Next commit
[google_maps_ios] extract nested lookup variable
  • Loading branch information
jokerttu committed Apr 27, 2023
commit 6c8323de672a0008bf211a1c225143957b8b802f
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ - (instancetype)initWithFrame:(CGRect)frame
GMSMapView *mapView;

#if defined(__IPHONE_12_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_12_0
if (args[@"options"][@"cloudMapId"]) {
GMSMapID *mapID = [GMSMapID mapIDWithIdentifier:args[@"options"][@"cloudMapId"]];
NSString *cloudMapId = args[@"options"][@"cloudMapId"];
if (cloudMapId) {
GMSMapID *mapID = [GMSMapID mapIDWithIdentifier:cloudMapId];
mapView = [GMSMapView mapWithFrame:frame mapID:mapID camera:camera];
} else {
mapView = [GMSMapView mapWithFrame:frame camera:camera];
Expand Down