Skip to content

Commit

Permalink
revert Chain#isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Apr 3, 2022
1 parent b1c69eb commit 25a4812
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -123,7 +123,7 @@ sealed abstract class Chain[+A] {
/**
* Returns true if there are no elements in this collection.
*/
def isEmpty: Boolean = this eq Chain.Empty
def isEmpty: Boolean = !this.isInstanceOf[Chain.NonEmpty[_]]

/**
* Returns false if there are no elements in this collection.
Expand Down

0 comments on commit 25a4812

Please sign in to comment.