mxsm commented on code in PR #4112:
URL: https://github.com/apache/eventmesh/pull/4112#discussion_r1227447736


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java:
##########
@@ -328,7 +325,7 @@ ClientRetCode processResponseContent(String content) {
             Map<String, Object> ret =
                 JsonUtils.parseTypeReferenceObject(content, new 
TypeReference<Map<String, Object>>() {
                 });
-            Integer retCode = (Integer) ret.get("retCode");
+            Integer retCode = (Integer) 
Objects.requireNonNull(ret).get("retCode");

Review Comment:
   How about replace "retCode" with ProtocolKey.RETCODE



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to