Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed Apr 9, 2024
1 parent 0204fb1 commit 906931b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/solve/scene/model/Scene.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ class Scene(
* If index is invalid IndexOutOfBoundsException is thrown.
*/
fun changeLayerIndex(element: LayerSettings, index: Int) {
if (element is LayerSettings.PlaneLayerSettings)
if (element is LayerSettings.PlaneLayerSettings) {
planesLayersStorage.move(element, index)
else
} else {
nonPlanesLayersStorage.move(element, index)
}

changedCallbacks.forEach { it() }
}
Expand Down
1 change: 0 additions & 1 deletion src/test/kotlin/solve/unit/scene/model/SceneTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.junit.jupiter.api.assertThrows
import solve.scene.model.ColorManager
import solve.scene.model.LayerSettings
import solve.scene.model.Scene
import java.lang.IndexOutOfBoundsException

internal class SceneTests {
private val colorManager = ColorManager<String>()
Expand Down

0 comments on commit 906931b

Please sign in to comment.