1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -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 ->
val other = alwaysRunAfter.get(node.name)
other?.forEach { o ->
val pluginTask = tasksByNames.get(o)
if (pluginTask != null) {
graph.addEdge(pluginTask, node)
tasksByNames.get(o)?.let {
graph.addEdge(it, node)
}
}
}