You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by jk...@apache.org on 2013/09/15 17:18:48 UTC

git commit: Trivial commit: Fix whitespace in Utils.rm.

Updated Branches:
  refs/heads/trunk 324936609 -> 9feef9fd6


Trivial commit: Fix whitespace in Utils.rm.


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/9feef9fd
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/9feef9fd
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/9feef9fd

Branch: refs/heads/trunk
Commit: 9feef9fd60920cf25a88e03dc5711745c0b7c0c5
Parents: 3249366
Author: Jay Kreps <ja...@gmail.com>
Authored: Sun Sep 15 08:18:07 2013 -0700
Committer: Jay Kreps <ja...@gmail.com>
Committed: Sun Sep 15 08:18:07 2013 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/utils/Utils.scala | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/9feef9fd/core/src/main/scala/kafka/utils/Utils.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/utils/Utils.scala b/core/src/main/scala/kafka/utils/Utils.scala
index 4eaeae8..405c7ae 100644
--- a/core/src/main/scala/kafka/utils/Utils.scala
+++ b/core/src/main/scala/kafka/utils/Utils.scala
@@ -223,18 +223,18 @@ object Utils extends Logging {
    * @param file The root file at which to begin deleting
    */
   def rm(file: File) {
-	if(file == null) {
-	  return
-	} else if(file.isDirectory) {
-	  val files = file.listFiles()
-	  if(files != null) {
-	    for(f <- files)
-	      rm(f)
+	  if(file == null) {
+	    return
+	  } else if(file.isDirectory) {
+	    val files = file.listFiles()
+	    if(files != null) {
+	      for(f <- files)
+	        rm(f)
+	    }
+	    file.delete()
+	  } else {
+	    file.delete()
 	  }
-	  file.delete()
-	} else {
-	  file.delete()
-	}
   }
   
   /**