Skip to content
Prev Previous commit
Next Next commit
Scalastyle.
  • Loading branch information
Marcelo Vanzin committed Jun 2, 2015
commit 220358bc53ff2cc97c8f31d00a7166563f82046d
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private[spark] class Client(
("log4j.properties", oldLog4jConf.orNull, null)
).foreach { case (destName, path, confKey) =>
if (path != null && !path.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very slightly different from before; before we trimmed the path before checking whether it's empty. Maybe it's not necessary but just to make sure we're aware of this

val (isLocal, localizedPath) = distribute(path, destName=Some(destName))
val (isLocal, localizedPath) = distribute(path, destName = Some(destName))
if (isLocal && confKey != null) {
// If the resource is intended for local use only, handle this downstream
// by setting the appropriate property
Expand Down