diff --git a/core/src/main/scala/cats/data/Chain.scala b/core/src/main/scala/cats/data/Chain.scala index 916c79f131..361f0e31b6 100644 --- a/core/src/main/scala/cats/data/Chain.scala +++ b/core/src/main/scala/cats/data/Chain.scala @@ -276,7 +276,7 @@ sealed abstract class Chain[+A] { c match { case Singleton(a) => val b = f(a) - if (b) return (); + if (b) return () c = if (rights.isEmpty) Empty else rights.reduceLeft((x, y) => Append(y, x)) diff --git a/core/src/main/scala/cats/instances/sortedMap.scala b/core/src/main/scala/cats/instances/sortedMap.scala index 5a25a9c0ca..df27ea937c 100644 --- a/core/src/main/scala/cats/instances/sortedMap.scala +++ b/core/src/main/scala/cats/instances/sortedMap.scala @@ -120,7 +120,7 @@ class SortedMapHash[K, V](implicit V: Hash[V], O: Order[K], K: Hash[K]) extends import scala.util.hashing.MurmurHash3._ def hash(x: SortedMap[K, V]): Int = { var a, b, n = 0 - var c = 1; + var c = 1 x foreach { case (k, v) => val h = StaticMethods.product2Hash(K.hash(k), V.hash(v)) a += h diff --git a/kernel/src/main/scala/cats/kernel/instances/map.scala b/kernel/src/main/scala/cats/kernel/instances/map.scala index 3ad5db23da..1831ffb991 100644 --- a/kernel/src/main/scala/cats/kernel/instances/map.scala +++ b/kernel/src/main/scala/cats/kernel/instances/map.scala @@ -26,7 +26,7 @@ class MapHash[K, V](implicit V: Hash[V]) extends MapEq[K, V]()(V) with Hash[Map[ import scala.util.hashing.MurmurHash3._ def hash(x: Map[K, V]): Int = { var a, b, n = 0 - var c = 1; + var c = 1 x foreach { case (k, v) => // use the default hash on keys because that's what Scala's Map does val h = StaticMethods.product2Hash(k.hashCode(), V.hash(v))