Skip to content

Commit

Permalink
Merge pull request #566 from MUzairS15/MUzairS15/enhancement
Browse files Browse the repository at this point in the history
directly send the response instead of processing
  • Loading branch information
MUzairS15 authored Aug 18, 2024
2 parents 1d5d3f9 + 03fd3d2 commit 56a1f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/meshmodel/core/policies/rego_policy_relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ func (r *Rego) RegoPolicyHandler(designFile pattern.PatternFile, regoQueryString
return evaluationResponse, ErrEval(fmt.Errorf("evaluation results are empty"))
}

evaluatedPatternFile, err := utils.MarshalAndUnmarshal[interface{}, pattern.PatternFile](evalResults)
evaluationResponse, err = utils.MarshalAndUnmarshal[interface{}, pattern.EvaluationResponse](evalResults)
if err != nil {
return evaluationResponse, err
}
evaluationResponse.Design = evaluatedPatternFile

return evaluationResponse, nil

}

0 comments on commit 56a1f47

Please sign in to comment.