Skip to content

Commit

Permalink
Retire Fix Impl (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: sahilchaudhary <sahil.chaudhary@tarento.com>
Co-authored-by: Sahil-tarento <140611066+Sahil-tarento@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 9e5fc1f commit 797324b
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 797324b

Please sign in to comment.