Skip to content

Commit 4af4e57

Browse files
authored
Use removeIf() because why not. (#5)
1 parent 53cebae commit 4af4e57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bs-dev/src/main/java/net/minecraftforge/bootstrap/dev/BootstrapDevClasspathFixer.java

+3
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,13 @@ private boolean processExplicit(List<Path[]> classpath) {
8888
}
8989

9090
// Remove any entries that are only a single path, no need to merge them
91+
map.values().removeIf(paths -> paths.size() <= 1);
92+
/*
9193
for (var itr = map.values().iterator(); itr.hasNext(); ) {
9294
if (itr.next().size() <= 1)
9395
itr.remove();
9496
}
97+
*/
9598

9699
// No explicit paths set, so nope out
97100
if (map.isEmpty())

0 commit comments

Comments
 (0)