Skip to content

Commit

Permalink
Use forEach again
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 16, 2023
1 parent ea3d88a commit d1e90f5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import com.squareup.kotlinpoet.ksp.toTypeParameterResolver
import com.squareup.kotlinpoet.ksp.writeTo
import dev.kord.codegen.generator.packageName
import dev.kord.codegen.generator.utils.getDeclaredFunctions
import dev.kord.codegen.generator.utils.isCallableType
import dev.kord.codegen.generator.visitors.VisitorBase

/**
Expand Down Expand Up @@ -69,7 +68,7 @@ object ReifyingVisitor : VisitorBase() {
.flatMap(KSDeclarationContainer::getDeclaredFunctions))
.filter { it.isReifiable() && !it.isConstructor() && it.isPublic() }
.process()
.onEach {
.forEach {
addFunction(it.reify())
}
}.build()
Expand Down

0 comments on commit d1e90f5

Please sign in to comment.