mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Replace needless map call
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user