Skip to content

Commit

Permalink
Improve how the spelling of our boolean logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Dec 21, 2023
1 parent e72f285 commit 7f535a5
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,10 @@ internal class MethodSnapshotGC {
methodsThatRan: ArrayMap<String, MethodSnapshotGC>,
): List<String> {
return Class.forName(className).methods.mapNotNull { method ->
if (methodsThatRan.containsKey(method.name) ||
testAnnotations.none { method.isAnnotationPresent(it) }) {
null
} else {
if (!methodsThatRan.containsKey(method.name) &&
testAnnotations.any { method.isAnnotationPresent(it) }) {
method.name
}
} else null
}
}
private val EMPTY_SET = ArraySet<String>(arrayOf())
Expand Down

0 comments on commit 7f535a5

Please sign in to comment.