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 459f3e51 authored by Jeroen Hoffman's avatar Jeroen Hoffman

REPO-1960 [back port to 11.2] simplify code

(cherry picked from commit f69fe4e6)
parent 6da2b3fb
......@@ -76,13 +76,13 @@ public final class HippoTranslatedNode {
throw new ItemNotFoundException("Node " + node.getPath() + " was not translated to " + language);
}
final Node translationNode = nodes.nextNode();
if (nodes.getSize() > 3) {
// check 3 for the stable draft/unpublished/published versions
log.warn("Not a maximum of 3 but {} translated variants found for node {} with translation id {} and language {}.",
nodes.getSize(), node.getPath(), id, language);
}
return translationNode;
return nodes.nextNode();
}
public boolean hasTranslation(String language) throws RepositoryException {
......
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