Skip to content

Commit 0e56e50

Browse files
committed
Kotlin: Replace a map call with forEach
1 parent 780f5ab commit 0e56e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ open class KotlinFileExtractor(
8080
}
8181
}
8282

83-
file.declarations.map { extractDeclaration(it, extractPrivateMembers = true, extractFunctionBodies = true) }
83+
file.declarations.forEach { extractDeclaration(it, extractPrivateMembers = true, extractFunctionBodies = true) }
8484
extractStaticInitializer(file, null)
8585
CommentExtractor(this, file, tw.fileId).extract()
8686
}

0 commit comments

Comments
 (0)