Skip to content

Commit

Permalink
Remove null check on DataSpecRef
Browse files Browse the repository at this point in the history
  • Loading branch information
juileetikekar committed Oct 15, 2024
1 parent 6522200 commit 9bbbd20
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ public virtual IActionResult GetAllConceptDescriptions([FromQuery] string? idSho
var reqDataSpecificationRef = _jsonQueryDeserializer.DeserializeReference("dataSpecificationRef", dataSpecificationRef);

var cdList = new List<IConceptDescription>();
if (reqDataSpecificationRef != null)
{
cdList = _cdService.GetAllConceptDescriptions(idShort, reqIsCaseOf, reqDataSpecificationRef);
}
cdList = _cdService.GetAllConceptDescriptions(idShort, reqIsCaseOf, reqDataSpecificationRef);

var authResult = _authorizationService.AuthorizeAsync(User, cdList, "SecurityPolicy").Result;
if (!authResult.Succeeded)
Expand Down

0 comments on commit 9bbbd20

Please sign in to comment.