Skip to content

Combination Anonymous Function declaration/call is broken up #53

@alanf

Description

@alanf
 UIViewController *const modalToDismiss = ^UIViewController *{
            switch (container.presentationStyle) {
                case MQCardOnFileLinkingFlowViewPresentationStyleModal:
                    return self.currentModalViewController;

                case MQCardOnFileLinkingFlowViewPresentationStyleFullScreen:
                    return (self.currentModalViewController != self.fullScreenNavigationController) ? self.fullScreenNavigationController : nil;
            }
}();

becomes

 UIViewController *const modalToDismiss = ^UIViewController *
        {
            switch (container.presentationStyle) {
                case MQCardOnFileLinkingFlowViewPresentationStyleModal:
                    return self.currentModalViewController;

                case MQCardOnFileLinkingFlowViewPresentationStyleFullScreen:
                    return (self.currentModalViewController != self.fullScreenNavigationController) ? self.fullScreenNavigationController : nil;
            }
        }
        ();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions