Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 7, 2018

Description

Addresses #10402.

Swift documentation advises us of the following:

Take advantage of defaulted parameters when it simplifies common uses. Any parameter with a single commonly-used value is a candidate for a default.

This PR takes the suggestion to heart, with an emphasis on removing superfluous completion handlers found throughout the app. The most common call sites impacted are presentation & dismissal methods of UIViewController.

Testing

Checkout the branch and verify that existing tests pass. Perform a cursory "smoke test" of the app.

@ghost ghost added this to the 11.3 milestone Nov 7, 2018
@ghost ghost self-assigned this Nov 7, 2018
@ghost ghost requested a review from ctarda November 7, 2018 00:37
@ghost ghost mentioned this pull request Nov 7, 2018
16 tasks
Copy link
Contributor

@ctarda ctarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL those completion blocks had a default. :shipit:

@ghost ghost merged commit 365d91c into develop Nov 7, 2018
@ghost ghost deleted the issue/10402e-remove-obsolete-completion-handlers branch November 7, 2018 15:00
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants