Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary semicolons #2451

Merged
merged 1 commit into from
Sep 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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