Skip to content

Commit

Permalink
Retire Fix Impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento committed Mar 26, 2024
1 parent 9e5fc1f commit 904bbb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object RetireManager {

private def validateRequest(request: Request) = {
val contentId: String = request.get(ContentConstants.IDENTIFIER).asInstanceOf[String]
if (StringUtils.isBlank(contentId) || StringUtils.endsWithIgnoreCase(contentId, HierarchyConstants.IMAGE_SUFFIX))
if (StringUtils.isBlank(contentId))
throw new ClientException(ContentConstants.ERR_INVALID_CONTENT_ID, "Please Provide Valid Content Identifier.")
}

Expand Down

0 comments on commit 904bbb5

Please sign in to comment.