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

[#6272] fix: Remove the unnecessary null checks #6282

Merged

Conversation

rud9192
Copy link
Contributor

@rud9192 rud9192 commented Jan 16, 2025

What changes were proposed in this pull request?

Remove the unnecessary null checks.

Why are the changes needed?

[#6272] Unnecessary because instanceof returns null

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

N/A

Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement.

@jerryshao jerryshao added the branch-0.8 Automatically cherry-pick commit to branch-0.8 label Jan 16, 2025
@jerryshao jerryshao merged commit 39e8a09 into apache:main Jan 16, 2025
28 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 16, 2025
**What changes were proposed in this pull request?**

Remove the unnecessary null checks.

**Why are the changes needed?**

[#6272] Unnecessary because instanceof returns null

**Does this PR introduce _any_ user-facing change?**

N/A

**How was this patch tested?**

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.8 Automatically cherry-pick commit to branch-0.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants