jonyangx commented on code in PR #2842:
URL: 
https://github.com/apache/incubator-eventmesh/pull/2842#discussion_r1063940568


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/RemoteUnSubscribeEventProcessor.java:
##########
@@ -104,11 +104,14 @@ public void handler(HandlerService.HandlerSpecific 
handlerSpecific, HttpRequest
 
         //validate body
         byte[] requestBody = requestWrapper.getBody();
-
-        Map<String, Object> requestBodyMap = 
Optional.ofNullable(JsonUtils.deserialize(
-            new String(requestBody, Constants.DEFAULT_CHARSET),
-            new TypeReference<HashMap<String, Object>>() {}
-        )).orElseGet(Maps::newHashMap);
+        Map<String, Object> requestBodyMap;

Review Comment:
   The code is redundant than before. @chenyi19851209 



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