Skip to content
Prev Previous commit
Next Next commit
Remove unnecessary check
  • Loading branch information
Markoutte committed Sep 11, 2023
commit 0852a76ccc7b848c3b0f4a0c95e03f48c3620d24
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ObjectValueProvider(
when {
fd.canBeSetDirectly -> {
yield(Routine.Call(listOf(fd.type)) { self, values ->
val model = self.model as? UtAssembleModel ?: return@Call
val model = self.model as UtAssembleModel
model.modificationsChain as MutableList += UtDirectSetFieldModel(
model,
FieldId(classId, fd.name),
Expand All @@ -113,7 +113,7 @@ class ObjectValueProvider(

fd.setter != null && fd.getter != null -> {
yield(Routine.Call(listOf(fd.type)) { self, values ->
val model = self.model as? UtAssembleModel ?: return@Call
val model = self.model as UtAssembleModel
model.modificationsChain as MutableList += UtExecutableCallModel(
model,
fd.setter.executableId,
Expand Down