File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
model-server/src/main/kotlin/org/modelix/model/server/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ val PERMISSION_MODEL_SERVER = "model-server".asResource()
60
60
val MODEL_SERVER_ENTRY = KeycloakResourceType (" model-server-entry" , KeycloakScope .READ_WRITE_DELETE )
61
61
62
62
private fun toLong (value : String? ): Long {
63
- return if (value == null || value.isEmpty ()) 0 else value.toLong()
63
+ return if (value.isNullOrEmpty ()) 0 else value.toLong()
64
64
}
65
65
66
66
private class NotFoundException (description : String? ) : RuntimeException(description)
@@ -260,7 +260,7 @@ class KeyValueLikeModelServer(
260
260
val processed: MutableSet <String > = HashSet ()
261
261
val pending: MutableSet <String > = HashSet ()
262
262
pending.add(rootKey)
263
- while (! pending.isEmpty ()) {
263
+ while (pending.isNotEmpty ()) {
264
264
val keys: List <String > = ArrayList (pending)
265
265
pending.clear()
266
266
val values = storeClient.getAll(keys)
You can’t perform that action at this time.
0 commit comments