Github user markhamstra commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1992#discussion_r16328061
  
    --- Diff: 
core/src/test/scala/org/apache/spark/rdd/PartitionPruningRDDSuite.scala ---
    @@ -63,11 +63,11 @@ class PartitionPruningRDDSuite extends FunSuite with 
SharedSparkContext {
           }
         }
         val prunedRDD1 = PartitionPruningRDD.create(rdd, {
    -      x => if (x == 0) true else false
    +      x => (x == 0)
         })
     
         val prunedRDD2 = PartitionPruningRDD.create(rdd, {
    -      x => if (x == 2) true else false
    +      x => (x == 2)
    --- End diff --
    
    If you really want to trim redundancy, the parens  are now unnecessary.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to