Skip to content

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

Merged
jerryshao merged 2 commits intoapache:mainfrom
rud9192:#6272]-Remove-the-unnecessary-null-checks
Jan 16, 2025
Merged

[#6272] fix: Remove the unnecessary null checks#6282
jerryshao merged 2 commits intoapache:mainfrom
rud9192:#6272]-Remove-the-unnecessary-null-checks

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 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
roryqi pushed a commit that referenced this pull request Jan 23, 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants