We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3fc19 commit 3bb6c33Copy full SHA for 3bb6c33
model-server/src/main/kotlin/org/modelix/model/server/handlers/LightModelServer.kt
@@ -65,7 +65,7 @@ import kotlin.collections.set
65
66
class LightModelServer(val client: LocalModelClient) {
67
68
- fun getStore() = client.storeCache!!
+ private fun getStore() = client.storeCache
69
70
fun init(application: Application) {
71
application.apply {
@@ -80,7 +80,7 @@ class LightModelServer(val client: LocalModelClient) {
80
}
81
82
private fun getCurrentVersion(repositoryId: RepositoryId): CLVersion {
83
- val versionHash = client.asyncStore?.get(repositoryId.getBranchKey())!!
+ val versionHash = client.asyncStore.get(repositoryId.getBranchKey())!!
84
return CLVersion.loadFromHash(versionHash, getStore())
85
86
0 commit comments