Skip to content

Commit

Permalink
filter NoDiffs out before adding to counts
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetkhanduri committed Dec 8, 2022
1 parent 9c800cd commit 92c84a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class InMemoryEndpointMetadata(receiver: MetricsReceiver) extends EndpointMetada
def add(diffs: Map[String, Difference]): Unit = {
Try(totalCounter.increment())
totalAtomic.incrementAndGet()
if (diffs.filterNot{case (_, diff) => diff.isInstanceOf[NoDifference]}.nonEmpty) {
if (diffs.filterNot{case (_, diff) => diff.isInstanceOf[NoDifference[_]]}.nonEmpty) {
differenceCounter.increment()
differenceAtomic.incrementAndGet()
}
Expand Down

0 comments on commit 92c84a3

Please sign in to comment.