Skip to content

Commit 6a3d92a

Browse files
authored
Merge pull request #18 from yahoo/sal/missingit
fix missing it
2 parents e7bbf58 + 2bf282c commit 6a3d92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

behavior-graph/src/main/kotlin/behaviorgraph/BehaviorBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ class BehaviorBuilder<T: Any>(
179179
val demands: MutableList<Demandable> = mutableListOf()
180180
dynamicSupplySwitches?.let { demands.addAll(it) }
181181
if (dynamicSupplyRelinkingOrder == RelinkingOrder.RelinkingOrderPrior) {
182-
dynamicSupplyResource?.let { supplies = listOf(dynamicSupplyResource) }
182+
dynamicSupplyResource?.let { supplies = listOf(it) }
183183
} else {
184-
dynamicSupplyResource?.let { demands.add(dynamicSupplyResource) }
184+
dynamicSupplyResource?.let { demands.add(it) }
185185
}
186186
Behavior(extent, demands, supplies) {
187187
val mutableListOfSupplies = mutableListOf<Resource?>()

0 commit comments

Comments
 (0)