Skip to content

Commit

Permalink
spring-kafka: instead of list, use iterable to match
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Oct 14, 2024
1 parent d805d6a commit 10d592a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class KafkaSystem(
.map {
when (it) {
is String -> it
is List<*> -> (it as List<String>).joinToString(",")
else -> ""
is Iterable<*> -> (it as Iterable<String>).joinToString(",")
else -> it.toString()
}
}.isSome { it.contains(exposedConfiguration.bootstrapServers) }

Expand Down

0 comments on commit 10d592a

Please sign in to comment.