You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/07/04 15:37:55 UTC

[GitHub] [dubbo] cheese8 opened a new issue, #10267: How about using guard clause to refactor nested if else clause?

cheese8 opened a new issue, #10267:
URL: https://github.com/apache/dubbo/issues/10267

   The guard clause:
   1、usually means less code and simpler code flow with less if/else nesting.
   2、it clearly indicates that current method is not interested in certain cases. 
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10267: How about using guard clause to refactor nested if else clause?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10267:
URL: https://github.com/apache/dubbo/issues/10267#issuecomment-1174825264

   would you please provide a example?


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10267: How about using guard clause to refactor nested if else clause?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10267:
URL: https://github.com/apache/dubbo/issues/10267#issuecomment-1175875505

   > > would you please provide a example?
   > 
   > For example : @AlbumenJ
   > 
   > using guard clause to refactor the 4 depth nesting if else in CacheFilter #10274
   
   This seems good!


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] cheese8 commented on issue #10267: How about using guard clause to refactor nested if else clause?

Posted by GitBox <gi...@apache.org>.
cheese8 commented on issue #10267:
URL: https://github.com/apache/dubbo/issues/10267#issuecomment-1174996621

   > would you please provide a example?
   
   For example : 
   
   using guard clause to refactor the 4 depth nesting if else in CacheFilter #10274


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] cheese8 closed issue #10267: How about using guard clause to refactor nested if else clause?

Posted by GitBox <gi...@apache.org>.
cheese8 closed issue #10267: How about using guard clause to refactor nested if else clause?
URL: https://github.com/apache/dubbo/issues/10267


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org