mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Simplify.
This commit is contained in:
parent
7d23d9b5cc
commit
71a9dac639
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ class TaskManager @Inject constructor(val args: Args,
|
||||||
// previous one, e.g. for "task1 task2 task3", add the edges "task2 -> task1" and "task3 -> task2"
|
// previous one, e.g. for "task1 task2 task3", add the edges "task2 -> task1" and "task3 -> task2"
|
||||||
if (taskNames.size >= 2) {
|
if (taskNames.size >= 2) {
|
||||||
projects.forEach { project ->
|
projects.forEach { project ->
|
||||||
taskNames.zip(taskNames.subList(1, taskNames.size)).forEach { pair ->
|
taskNames.zip(taskNames.drop(1)).forEach { pair ->
|
||||||
addEdge(TaskInfo(project.name, pair.second), TaskInfo(project.name, pair.first))
|
addEdge(TaskInfo(project.name, pair.second), TaskInfo(project.name, pair.first))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue