Skip to content

Commit

Permalink
Migrate from reduce to fold.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Jul 5, 2024
1 parent fdfaca9 commit 07acb8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ abstract class PackageArchiveTask : DefaultTask() {
dependencyArchives: List<ArtifactArchive>,
packagingEnvironment: PackagingEnvironment,
): ArtifactArchive {
fun Collection<String>.toGlob(): Glob = map(Glob::fromString).reduce(Glob::plus)
fun Collection<String>.toGlob(): Glob = map(Glob::fromString).fold(Glob.None, Glob::plus)

val jniLibsMergeRules = MergeRules(
pickFirsts = packagingEnvironment.jniLibs.pickFirsts.toGlob(),
Expand Down

0 comments on commit 07acb8f

Please sign in to comment.