You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2013/09/10 21:40:58 UTC

[44/50] git commit: Style fix: put body of if within curly braces

Style fix: put body of if within curly braces


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/fdb8b0ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/fdb8b0ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/fdb8b0ee

Branch: refs/heads/branch-0.8
Commit: fdb8b0eec3e423e601de8c79658c4644717f4e05
Parents: 2772607
Author: Evan Chan <ev...@ooyala.com>
Authored: Mon Sep 9 14:29:32 2013 -0700
Committer: Evan Chan <ev...@ooyala.com>
Committed: Mon Sep 9 14:29:32 2013 -0700

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/util/Utils.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/fdb8b0ee/core/src/main/scala/org/apache/spark/util/Utils.scala
----------------------------------------------------------------------
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 a95eae9..a89e245 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
   }