addressed code review comments

This commit is contained in:
cagache
2019-05-20 16:58:35 +03:00
parent 0118ff795b
commit a6fb2f1cbc

View File

@@ -465,8 +465,7 @@ public class RMRolesAndActionsAPI extends BaseAPI
public HttpResponse createHold(String user, String password, String holdName, String reason, String description) public HttpResponse createHold(String user, String password, String holdName, String reason, String description)
{ {
// if the hold already exists don't try to create it again // if the hold already exists don't try to create it again
final String holdsContainerPath = Utility.buildPath(getFilePlanPath(), HOLDS_CONTAINER); final String fullHoldPath = Utility.buildPath(getFilePlanPath(), HOLDS_CONTAINER) + holdName;
final String fullHoldPath = holdsContainerPath + holdName;
final CmisObject hold = getObjectByPath(user, password, fullHoldPath); final CmisObject hold = getObjectByPath(user, password, fullHoldPath);
if (hold != null) if (hold != null)
{ {