[
https://issues.apache.org/jira/browse/SPARK-14167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved SPARK-14167.
-----------------------------------
Resolution: Won't Fix
I close this issue based on the comment of [~joshrosen].
"I'm actually wary of this change. There's a number of times where I've found
redundant returns but have chosen not to remove them because I was afraid of
future code refactorings or changes accidentally making the implicit return no
longer take effect. If this isn't strictly necessary, I'd prefer to not do this
cleanup."
> Remove redundant `return` in Scala code
> ---------------------------------------
>
> Key: SPARK-14167
> URL: https://issues.apache.org/jira/browse/SPARK-14167
> Project: Spark
> Issue Type: Task
> Reporter: Dongjoon Hyun
> Priority: Trivial
>
> Spark Scala code takes advantage of `return` statement as a control flow in
> many cases, but it does not mean *redundant* `return` statements are needed.
> This issue tries to remove redundant `return` statement in Scala code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]