Skip to content

Commit

Permalink
remove unnecessary-semicolons (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
kun-song authored and kailuowang committed Sep 1, 2018
1 parent 380f721 commit 6ac776c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/Chain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/instances/sortedMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/main/scala/cats/kernel/instances/map.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6ac776c

Please sign in to comment.