minal-kyada commented on code in PR #4556:
URL: https://github.com/apache/cassandra/pull/4556#discussion_r2887179574


##########
src/java/org/apache/cassandra/service/DatacenterSyncWriteResponseHandler.java:
##########
@@ -79,9 +84,15 @@ public void onResponse(Message<T> message)
     {
         try
         {
+            InetAddressAndPort from = message == null ? 
FBUtilities.getBroadcastAddressAndPort() : message.from();

Review Comment:
   Merged all the null checks and simplified the logic.



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