chenyulin0719 commented on PR #754:
URL: https://github.com/apache/yunikorn-core/pull/754#issuecomment-1851252427
Checked the CI result. I think the missing coverage(3 lines) is accpeted
because the logic is straightforward, and it's diffcult to force
'json.NewEncoder(w).Encode(result') to return an error. (That would be unusual
conditions.) I can also see same code snippet was used in serveral APIs.
>
if err := json.NewEncoder(w).Encode(result); err != nil {
buildJSONErrorResponse(w, err.Error(),
http.StatusInternalServerError)
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]