Skip to content

[gardening] Remove redundant nil-initialization of optional variables #4852

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

Merged
merged 1 commit into from
Sep 19, 2016
Merged

[gardening] Remove redundant nil-initialization of optional variables #4852

merged 1 commit into from
Sep 19, 2016

Conversation

practicalswift
Copy link
Contributor

@practicalswift practicalswift commented Sep 17, 2016

Remove redundant nil-initialization of optional variables.

From the Swift documentation:

If you define an optional variable without providing a default value, the variable is automatically set to nil for you.

@practicalswift practicalswift changed the title [gardening] Remove redundant nil-initialization of optional variable [gardening] Remove redundant nil-initialization of optional variables Sep 17, 2016
@practicalswift
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - b5b25b176c481b96d768cea59c0a1af447ca8aad
Test requested by - @practicalswift

From the Swift documentation:

"If you define an optional variable without providing a default value,
 the variable is automatically set to nil for you."
@practicalswift
Copy link
Contributor Author

@swift-ci please smoke test

@practicalswift
Copy link
Contributor Author

@swift-ci please test

@practicalswift practicalswift merged commit 2ee3c45 into swiftlang:master Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants