Skip to content

Commit 6fe90ee

Browse files
committed
chore: emptyList() instead of ArrayList() in LinearHistory
1 parent 62241e9 commit 6fe90ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/LinearHistory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LinearHistory(val baseVersionHash: String?) {
3030
collect(fromVersion)
3131
}
3232

33-
var result: List<Long> = ArrayList()
33+
var result: List<Long> = emptyList()
3434

3535
for (version in versions.values.filter { !it.isMerge() }.sortedBy { it.id }) {
3636
val descendantIds = collectAllDescendants(version.id).filter { !versions[it]!!.isMerge() }.sorted().toSet()

0 commit comments

Comments
 (0)