Kotlin: Replace a map call with forEach

This commit is contained in:
Ian Lynagh
2022-06-30 13:50:22 +01:00
parent 780f5abc67
commit 0e56e50d18

View File

@@ -80,7 +80,7 @@ open class KotlinFileExtractor(
} }
} }
file.declarations.map { extractDeclaration(it, extractPrivateMembers = true, extractFunctionBodies = true) } file.declarations.forEach { extractDeclaration(it, extractPrivateMembers = true, extractFunctionBodies = true) }
extractStaticInitializer(file, null) extractStaticInitializer(file, null)
CommentExtractor(this, file, tw.fileId).extract() CommentExtractor(this, file, tw.fileId).extract()
} }