Addressed review comments

This commit is contained in:
suneet.gupta
2023-03-11 00:57:24 +05:30
parent 9d05e56915
commit 886989e290

View File

@@ -202,7 +202,7 @@ public class TagsImpl implements Tags
public NodeRef validateTag(StoreRef storeRef, String tagId) public NodeRef validateTag(StoreRef storeRef, String tagId)
{ {
NodeRef tagNodeRef = nodes.validateNode(storeRef,tagId); NodeRef tagNodeRef = nodes.validateNode(storeRef,tagId);
if ( tagNodeRef == null || nodeService.hasAspect(tagNodeRef, ContentModel.ASPECT_TAGGABLE)) if (tagNodeRef == null || nodeService.hasAspect(tagNodeRef, ContentModel.ASPECT_TAGGABLE))
{ {
throw new EntityNotFoundException(tagId); throw new EntityNotFoundException(tagId);
} }