Skip to content

Commit

Permalink
Try to assuage detekt.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmonz committed Jun 28, 2024
1 parent e84237c commit 103f5b5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/kotlin/com/schmonz/greencently/summary/JUnit5Summary.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ class JUnit5Summary(testPlan: TestPlan, internal val anyTestsRed: Boolean, inter
}

override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is JUnit5Summary) return false
if (testCount == other.testCount && anyTestsRed == other.anyTestsRed && anyTestsGreen == other.anyTestsGreen)
if (this === other) {
return true
}
if (other !is JUnit5Summary) {
return false
}
if (testCount == other.testCount && anyTestsRed == other.anyTestsRed && anyTestsGreen == other.anyTestsGreen) {
return true
}
return false
}

Expand Down

0 comments on commit 103f5b5

Please sign in to comment.