1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Use method reference.

This commit is contained in:
Cedric Beust 2016-08-11 02:45:39 -08:00
parent e4e0838109
commit 5ed955c5f9

View file

@ -154,7 +154,7 @@ class DependencyManager2 @Inject constructor(val aether: KobaltAether) {
// Get the transitive closure of all the projects this project depends on // Get the transitive closure of all the projects this project depends on
val transitiveProjects = val transitiveProjects =
if (project == null) emptyList() if (project == null) emptyList()
else DynamicGraph.transitiveClosure(project) { project -> project.dependsOn } else DynamicGraph.transitiveClosure(project, Project::dependsOn)
val result = arrayListOf<IClasspathDependency>() val result = arrayListOf<IClasspathDependency>()