Replace needless map call

This commit is contained in:
Chris Smowton
2022-11-16 11:28:05 +00:00
parent 80ef3a5290
commit 225913c49e

View File

@@ -637,7 +637,7 @@ open class KotlinFileExtractor(
if (c.kind == ClassKind.ANNOTATION_CLASS) {
c.declarations
.filterIsInstance<IrProperty>()
.map {
.forEach {
val getter = it.getter
if (getter == null) {
logger.warnElement("Expected an annotation property to have a getter", it)