Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary if let usage in writeAndFlush #365

Merged
merged 3 commits into from
Apr 27, 2018

Conversation

normanmaurer
Copy link
Member

Motivation:

There was some if let usage that is not needed . We can remove it and just pass down the promise (no matter if its nil or not).

Modifications:

Remove if let

Result:

Code cleanup

Motivation:

There was some if let usage that is not needed . We can remove it and just pass down the promise (no matter if its nil or not).

Modifications:

Remove if let

Result:

Code cleanup
@normanmaurer normanmaurer requested review from weissi and Lukasa April 26, 2018 19:43
Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

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

👍👍

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

LGTM.

@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Apr 27, 2018
@Lukasa Lukasa added this to the 1.6.0 milestone Apr 27, 2018
@Lukasa Lukasa merged commit cf064a0 into apple:master Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants