kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkr...@apache.org
Subject git commit: Trivial commit: Fix whitespace in Utils.rm.
Date Sun, 15 Sep 2013 15:18:48 GMT
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 <jay.kreps@gmail.com>
Authored: Sun Sep 15 08:18:07 2013 -0700
Committer: Jay Kreps <jay.kreps@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()
-	}
   }
   
   /**


Mime
View raw message