Skip to content

Commit

Permalink
Merge pull request #18 from yahoo/sal/missingit
Browse files Browse the repository at this point in the history
fix missing it
  • Loading branch information
slevin authored Dec 13, 2024
2 parents e7bbf58 + 2bf282c commit 6a3d92a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class BehaviorBuilder<T: Any>(
val demands: MutableList<Demandable> = mutableListOf()
dynamicSupplySwitches?.let { demands.addAll(it) }
if (dynamicSupplyRelinkingOrder == RelinkingOrder.RelinkingOrderPrior) {
dynamicSupplyResource?.let { supplies = listOf(dynamicSupplyResource) }
dynamicSupplyResource?.let { supplies = listOf(it) }
} else {
dynamicSupplyResource?.let { demands.add(dynamicSupplyResource) }
dynamicSupplyResource?.let { demands.add(it) }
}
Behavior(extent, demands, supplies) {
val mutableListOfSupplies = mutableListOf<Resource?>()
Expand Down

0 comments on commit 6a3d92a

Please sign in to comment.