summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2012-10-07 00:32:53 -0600
committerRocky Madden <git@rockymadden.com>2012-10-07 00:32:53 -0600
commit3fcd22a655acc8c6e71dc76cbc0c16a7194da653 (patch)
tree08c78cbc0a0f72a1372e592227e7bd152bb427c2 /core
parentedcf29ce45484d7172d7f200a12572ef429dc2bb (diff)
downloadstringmetric-3fcd22a655acc8c6e71dc76cbc0c16a7194da653.tar.gz
stringmetric-3fcd22a655acc8c6e71dc76cbc0c16a7194da653.tar.bz2
stringmetric-3fcd22a655acc8c6e71dc76cbc0c16a7194da653.zip
Removed unneeded conversion to string.
Diffstat (limited to 'core')
-rwxr-xr-xcore/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala b/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala
index 81c2cc8..9ba8756 100755
--- a/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala
+++ b/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala
@@ -24,7 +24,7 @@ object JaroWinklerMetric extends StringMetric {
// Return 0 if matches score is 0.
if (matchesScore == 0) return 0f
- val prefix = ca1.zip(ca2).takeWhile(t => t._1 == t._2).map(_._1).mkString
+ val prefix = ca1.zip(ca2).takeWhile(t => t._1 == t._2).map(_._1)
val jaro = (
(matchesScore.toFloat / ca1.length) +
(matchesScore.toFloat / ca2.length) +