We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7bbf58 + 2bf282c commit 6a3d92aCopy full SHA for 6a3d92a
behavior-graph/src/main/kotlin/behaviorgraph/BehaviorBuilder.kt
@@ -179,9 +179,9 @@ class BehaviorBuilder<T: Any>(
179
val demands: MutableList<Demandable> = mutableListOf()
180
dynamicSupplySwitches?.let { demands.addAll(it) }
181
if (dynamicSupplyRelinkingOrder == RelinkingOrder.RelinkingOrderPrior) {
182
- dynamicSupplyResource?.let { supplies = listOf(dynamicSupplyResource) }
+ dynamicSupplyResource?.let { supplies = listOf(it) }
183
} else {
184
- dynamicSupplyResource?.let { demands.add(dynamicSupplyResource) }
+ dynamicSupplyResource?.let { demands.add(it) }
185
}
186
Behavior(extent, demands, supplies) {
187
val mutableListOfSupplies = mutableListOf<Resource?>()
0 commit comments