From db34c129226db4e24dde23ef6e25975aef2fe660 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sat, 1 Jun 2024 23:07:49 +0200 Subject: [PATCH] Remove unnecessary FileTree.asFileTree in OciCopySpecProcessor --- .../gradle/oci/internal/copyspec/OciCopySpecProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/internal/copyspec/OciCopySpecProcessor.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/internal/copyspec/OciCopySpecProcessor.kt index b56af54b..b8595b7a 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/internal/copyspec/OciCopySpecProcessor.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/internal/copyspec/OciCopySpecProcessor.kt @@ -94,7 +94,7 @@ private fun OciCopySpecInput.process( val groupIdPatterns = convertPatterns(parentGroupIdPatterns, groupIdPatterns, destinationPath) val moveCache = HashMap() - sources.asFileTree.visit(object : ReproducibleFileVisitor { + sources.visit(object : ReproducibleFileVisitor { override fun visitDir(dirDetails: FileVisitDetails) { visitDirectories( pendingDestinationPathStates,