aaron-ai commented on code in PR #5596:
URL: https://github.com/apache/rocketmq/pull/5596#discussion_r1035708348


##########
broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java:
##########
@@ -456,10 +458,12 @@ private synchronized RemotingCommand 
updateAndCreateStaticTopic(ChannelHandlerCo
             response.setRemark(result.getRemark());
             return response;
         }
-        if (TopicValidator.isSystemTopic(topic)) {
-            response.setCode(ResponseCode.SYSTEM_ERROR);
-            response.setRemark("The topic[" + topic + "] is conflict with 
system topic.");
-            return response;
+        if 
(brokerController.getBrokerConfig().isValidateSystemTopicWhenUpdateTopic()) {
+            if (TopicValidator.isSystemTopic(topic)) {
+                response.setCode(ResponseCode.SYSTEM_ERROR);

Review Comment:
   Merge the judgement into one-line could help us to reduce the unnecessary 
code indent.



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

Reply via email to