refactor some static methods to generic versions in BiFunctor

This commit is contained in:
dfsek
2026-01-01 22:30:10 -07:00
parent 86bb4d5a1a
commit 9357b18964
5 changed files with 36 additions and 25 deletions

View File

@@ -18,6 +18,9 @@
package com.dfsek.terra;
import com.dfsek.tectonic.api.TypeRegistry;
import com.dfsek.terra.api.util.generic.data.BiFunctor;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.jetbrains.annotations.NotNull;
@@ -352,7 +355,7 @@ public abstract class AbstractPlatform implements Platform {
paths
.stream()
.filter(Pair.testRight(resourcePath::startsWith))
.forEach(Pair.consumeLeft(path -> {
.forEach(BiFunctor.consumeLeft(path -> {
logger.info("Removing outdated resource {}, replacing with {}", path, resourcePath);
try {
Files.delete(path);