Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 376067ae authored by Yannick Li's avatar Yannick Li
Browse files

Replace negated 'isEmpty' with 'isNotEmpty'

parent 635f17e6
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class Session {
fun openCollection(collectionUId: CollectionUId, readOnly: Boolean): Collection {
if (ActiveTransaction != null) throw RuntimeException("A collection cannot be open within a transaction.")
if (this.isClosed) throw RuntimeException("This session has been closed.")
if (!this.openedCollections.isEmpty()) throw RuntimeException("A collection is alredy opened.")
if (this.openedCollections.isNotEmpty()) throw RuntimeException("A collection is alredy opened.")
val newCollection = Collection(this, collectionUId, readOnly)
this.openedCollections.put(collectionUId, newCollection)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment