You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2014/08/15 23:01:18 UTC
[jira] [Resolved] (SPARK-3010) fix redundant conditional
[ https://issues.apache.org/jira/browse/SPARK-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Wendell resolved SPARK-3010.
------------------------------------
Resolution: Won't Fix
PR was closed by the user.
> fix redundant conditional
> -------------------------
>
> Key: SPARK-3010
> URL: https://issues.apache.org/jira/browse/SPARK-3010
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.0.2
> Reporter: wangfei
> Fix For: 1.1.0
>
>
> there are some redundant conditional in spark, such as
> 1.
> private[spark] def codegenEnabled: Boolean =
> if (getConf(CODEGEN_ENABLED, "false") == "true") true else false
> 2.
> x => if (x == 2) true else false
> ... etc
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org