Skip to content

Conversation

@egorzhdan
Copy link
Contributor

cast<CustomAttr> never returns nullptr, it either returns a non-null CustomAttr* or traps. This if condition was triggering a clang-tidy warning, since it is redundant.

`cast<CustomAttr>` never returns nullptr, it either returns a non-null `CustomAttr*` or traps. This if condition was triggering a clang-tidy warning, since it is redundant.
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jul 9, 2024
@egorzhdan egorzhdan requested a review from Xazax-hun July 9, 2024 12:13
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan enabled auto-merge July 9, 2024 12:13
Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

LGTM!

@egorzhdan egorzhdan merged commit 0a01d7f into main Jul 9, 2024
@egorzhdan egorzhdan deleted the egorzhdan/redundant-if branch July 9, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants