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

Refactor.

This commit is contained in:
Cedric Beust 2015-10-13 01:25:54 -07:00
parent d5cd7ab63d
commit 6368fdf18b

View file

@ -120,9 +120,8 @@ public class TaskManager @Inject constructor(val plugins: Plugins, val args: Arg
allNodes.forEach { node -> allNodes.forEach { node ->
val other = alwaysRunAfter.get(node.name) val other = alwaysRunAfter.get(node.name)
other?.forEach { o -> other?.forEach { o ->
val pluginTask = tasksByNames.get(o) tasksByNames.get(o)?.let {
if (pluginTask != null) { graph.addEdge(it, node)
graph.addEdge(pluginTask, node)
} }
} }
} }