Skip to content

Commit d819c5b

Browse files
committed
refactor(model-server): use isNullOrEmpty instead of manual test
1 parent 7c6b088 commit d819c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-server/src/main/kotlin/org/modelix/model/server/handlers/HistoryHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class HistoryHandler(val client: IModelClient, private val repositoriesManager:
178178
skip: Int,
179179
limit: Int,
180180
) {
181-
val headVersion = if (headHash == null || headHash.length == 0) {
181+
val headVersion = if (headHash.isNullOrEmpty()) {
182182
latestVersion
183183
} else {
184184
CLVersion(

0 commit comments

Comments
 (0)