Skip to content

[MINOR] Remove redundant return#37148

Closed
panbingkun wants to merge 1 commit intoapache:masterfrom
panbingkun:remove_redundance_return
Closed

[MINOR] Remove redundant return#37148
panbingkun wants to merge 1 commit intoapache:masterfrom
panbingkun:remove_redundance_return

Conversation

@panbingkun
Copy link
Contributor

What changes were proposed in this pull request?

Remove redundant return in scala code.

Why are the changes needed?

Syntactic simplification.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

@HyukjinKwon
Copy link
Member

Are they all in the codebase?

@panbingkun
Copy link
Contributor Author

Are they all in the codebase?

Yes, I inspect all scala code in spark by

Tool: "/Applications/IntelliJ IDEA CE.app/Contents/bin/inspect.sh"
Rule: Syntactic simplification - redundant return

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

LGTM +1

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@HyukjinKwon
Copy link
Member

Merged to master.

@panbingkun
Copy link
Contributor Author

panbingkun commented Jul 11, 2022

Merged to master.

I am very sorry, I miss some scala code with the same problem. @HyukjinKwon
Followup PR: #37157
I checked twice this time, and there was no such problem in the other scala code.

HyukjinKwon pushed a commit that referenced this pull request Jul 11, 2022
### What changes were proposed in this pull request?
Remove redundant return in scala code.

The pr followup: #37148

### Why are the changes needed?
Syntactic simplification.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes #37157 from panbingkun/remove_redundance_return_followup.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@panbingkun panbingkun deleted the remove_redundance_return branch July 13, 2022 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants