You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2015/01/30 01:55:06 UTC

spark git commit: remove 'return'

Repository: spark
Updated Branches:
  refs/heads/master f240fe390 -> 5338772f3


remove 'return'

looks unnecessary :grinning:

Author: Yoshihiro Shimizu <sh...@amoad.com>

Closes #4268 from y-shimizu/remove-return and squashes the following commits:

12be0e9 [Yoshihiro Shimizu] remove 'return'


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

Branch: refs/heads/master
Commit: 5338772f3fe9cfe1f8caee64cce2275457d8f23f
Parents: f240fe3
Author: Yoshihiro Shimizu <sh...@amoad.com>
Authored: Thu Jan 29 16:55:00 2015 -0800
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Thu Jan 29 16:55:00 2015 -0800

----------------------------------------------------------------------
 mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5338772f/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
index 567a8a6..8f75e6f 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
@@ -78,7 +78,7 @@ sealed trait Vector extends Serializable {
         result = 31 * result + (bits ^ (bits >>> 32)).toInt
       }
     }
-    return result
+    result
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org