srowen commented on a change in pull request #24241:
[SPARK-27323][CORE][SQL][STREAMING] Use Single-Abstract-Method support in Scala
2.12 to simplify code
URL: https://github.com/apache/spark/pull/24241#discussion_r270521260
##########
File path: core/src/main/scala/org/apache/spark/SparkConf.scala
##########
@@ -392,7 +390,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable
with Logging with Seria
/** Get an optional value, applying variable substitution. */
private[spark] def getWithSubstitution(key: String): Option[String] = {
- getOption(key).map(reader.substitute(_))
+ getOption(key).map(reader.substitute)
Review comment:
In the files I did change, I cleaned up a few other things in nearby code,
like this. Other examples are using `.nonEmpty` and removing redundant braces,
etc
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]