xuxiaowei-com-cn commented on code in PR #8054:
URL: https://github.com/apache/incubator-seata/pull/8054#discussion_r3160252142


##########
namingserver/src/main/java/org/apache/seata/namingserver/service/ConsoleLocalServiceImpl.java:
##########
@@ -157,13 +156,6 @@ public String putCallTC(
 
     @Override
     public String getCallNameSpace(String path) {
-        String namespace;
-        try {
-            namespace = 
objectMapper.writeValueAsString(namingManager.namespace());
-        } catch (JsonProcessingException e) {
-            LOGGER.error("Get NameSpace failed: {}", e.getMessage());
-            return "Failed to get namespace";
-        }
-        return namespace;
+        return objectMapper.writeValueAsString(namingManager.namespace());

Review Comment:
   - fixed.
   - 已修正。



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