code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 8564cbd0 authored by Sergey Shepelevich's avatar Sergey Shepelevich

REPO-1850 Fix groovy script

Changed '>' to '>'
parent ce93012c
......@@ -27,12 +27,8 @@ import org.onehippo.repository.update.BaseNodeUpdateVisitor
import javax.jcr.Node
import javax.jcr.version.Version
import javax.jcr.version.VersionManager
import javax.jcr.version.VersionHistory
import java.util.ArrayList
import java.util.Collections
import java.util.List
import javax.jcr.version.VersionManager
/**
* Truncates the version history, retaining only the latest
......@@ -85,7 +81,7 @@ class VersionsCleaner extends BaseNodeUpdateVisitor {
}
// remove versions
int removeCount = versions.size() - retainCount
boolean remove = removeCount > 0
boolean remove = removeCount > 0
if (remove) {
log.info "Removing ${removeCount} versions of node ${node.path}"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment