aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Chan <ev@ooyala.com>2013-09-09 14:29:32 -0700
committerEvan Chan <ev@ooyala.com>2013-09-09 14:29:32 -0700
commitfdb8b0eec3e423e601de8c79658c4644717f4e05 (patch)
treeefd28eb58db1f5253a21859215adafb32c93f7c7
parent27726079e4e6931c071de77e91f991cb1b249d02 (diff)
downloadspark-fdb8b0eec3e423e601de8c79658c4644717f4e05.tar.gz
spark-fdb8b0eec3e423e601de8c79658c4644717f4e05.tar.bz2
spark-fdb8b0eec3e423e601de8c79658c4644717f4e05.zip
Style fix: put body of if within curly braces
-rw-r--r--core/src/main/scala/org/apache/spark/util/Utils.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala
index a95eae9c69..a89e245322 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -459,7 +459,9 @@ private[spark] object Utils extends Logging {
private def listFilesSafely(file: File): Seq[File] = {
val files = file.listFiles()
- if (files == null) throw new IOException("Failed to list files for dir: " + file)
+ if (files == null) {
+ throw new IOException("Failed to list files for dir: " + file)
+ }
files
}