Skip to content

Commit cfbd1b6

Browse files
committed
chore(model-server): make revert function private
No further visibility needed.
1 parent 87d589f commit cfbd1b6

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
@@ -107,7 +107,7 @@ class HistoryHandler(val client: IModelClient, private val repositoriesManager:
107107
}
108108
}
109109

110-
suspend fun revert(repositoryAndBranch: BranchReference, from: String?, to: String?, author: String?) {
110+
private suspend fun revert(repositoryAndBranch: BranchReference, from: String?, to: String?, author: String?) {
111111
val version = repositoriesManager.getVersion(repositoryAndBranch) ?: throw RuntimeException("Branch doesn't exist: $repositoryAndBranch")
112112
val branch = OTBranch(PBranch(version.tree, client.idGenerator), client.idGenerator, client.storeCache!!)
113113
branch.runWriteT { t ->

0 commit comments

Comments
 (0)