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

    https://github.com/apache/spark/pull/21977#discussion_r212782657
  
    --- Diff: 
resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/BaseYarnClusterSuite.scala
 ---
    @@ -161,6 +162,11 @@ abstract class BaseYarnClusterSuite
         }
         extraJars.foreach(launcher.addJar)
     
    +    if (outFile.isDefined) {
    --- End diff --
    
    Like I said, I think `foreach` is a bad practice with options, so I'd 
rather not change to use it. I'd be happy to change this to a pattern match if 
you think it is really desirable to get rid of the `.get`.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to