@@ -68,7 +68,7 @@ interface SimInfo : Automated {
6868 pov,
6969 Stack (),
7070 concurrentResults
71- )? .takeIf { it.hasBasicRequirements() }?.sim()
71+ ).takeIf { it.hasBasicRequirements() }?.sim()
7272
7373 /* *
7474 * Creates a new [SimInfo] using the current [SimInfo]'s [dependencyStack] and [concurrentResults],
@@ -89,7 +89,7 @@ interface SimInfo : Automated {
8989 pov,
9090 Stack <Sim <* >>().apply { addAll(dependencyStack) },
9191 concurrentResults
92- )? .takeIf { it.hasBasicRequirements() }?.sim()
92+ ).takeIf { it.hasBasicRequirements() }?.sim()
9393
9494 @SimDsl
9595 private fun AutomatedSafeContext.getTypedInfo (
@@ -99,10 +99,10 @@ interface SimInfo : Automated {
9999 pov : Vec3d ,
100100 dependencyStack : Stack <Sim <* >>,
101101 concurrentResults : MutableSet <BuildResult >
102- ): SimInfo ? =
102+ ): SimInfo {
103103 if (! targetState.isEmpty()) {
104104 getProcessingInfo(state, targetState, pos)?.let { preProcessing ->
105- object : InteractSimInfo , Automated by this {
105+ return object : InteractSimInfo , Automated by this {
106106 override val pos = pos
107107 override val state = state
108108 override val targetState = targetState
@@ -121,7 +121,9 @@ interface SimInfo : Automated {
121121 expectedState.matches(state, if (! completely) preProcessing.info.ignore else emptySet())
122122 }
123123 }
124- } else object : BreakSimInfo , Automated by this {
124+ }
125+
126+ return object : BreakSimInfo , Automated by this {
125127 override val pos = pos
126128 override val state = state
127129 override val targetState = targetState
@@ -132,6 +134,7 @@ interface SimInfo : Automated {
132134 context(_: AutomatedSafeContext , _: Sim <* >)
133135 override suspend fun sim () = simBreak()
134136 }
137+ }
135138 }
136139}
137140
0 commit comments