diff options
author | Evan Chan <ev@ooyala.com> | 2013-09-09 14:29:32 -0700 |
---|---|---|
committer | Evan Chan <ev@ooyala.com> | 2013-09-09 14:29:32 -0700 |
commit | fdb8b0eec3e423e601de8c79658c4644717f4e05 (patch) | |
tree | efd28eb58db1f5253a21859215adafb32c93f7c7 /core | |
parent | 27726079e4e6931c071de77e91f991cb1b249d02 (diff) | |
download | spark-fdb8b0eec3e423e601de8c79658c4644717f4e05.tar.gz spark-fdb8b0eec3e423e601de8c79658c4644717f4e05.tar.bz2 spark-fdb8b0eec3e423e601de8c79658c4644717f4e05.zip |
Style fix: put body of if within curly braces
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/util/Utils.scala | 4 |
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 } |