Skip to content

SourceKit: silence as -Wmisleading-indent warning (NFCI) #32576

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
Jun 29, 2020

Conversation

compnerd
Copy link
Member

The code was indented such as to indicate that the check was meant to be
an early return in the if condition only. However, because it would
just always trigger previously, the code would happen to have the
correct behaviour.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

CC: @benlangmuir

@compnerd
Copy link
Member Author

@swift-ci please test

Undent the code that was mis-indended leading to a warning with clang.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd compnerd merged commit bbbe67e into swiftlang:master Jun 29, 2020
@compnerd compnerd deleted the brace-yourself branch June 29, 2020 02:16
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.

2 participants