mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Refactor.
This commit is contained in:
parent
455f02f3be
commit
cdd14df6f5
1 changed files with 5 additions and 4 deletions
|
@ -172,10 +172,11 @@ class TaskManager @Inject constructor(val args: Args,
|
|||
//
|
||||
// Reverse the always map so that tasks can be looked up.
|
||||
//
|
||||
val always = ArrayListMultimap.create<String, String>()
|
||||
alwaysRunAfter.keySet().forEach { k ->
|
||||
alwaysRunAfter[k].forEach { v ->
|
||||
always.put(v, k)
|
||||
val always = ArrayListMultimap.create<String, String>().apply {
|
||||
alwaysRunAfter.keySet().forEach { k ->
|
||||
alwaysRunAfter[k].forEach { v ->
|
||||
put(v, k)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue