Code can be optimized? #6980
andrew-kuzovov
started this conversation in
General
Replies: 1 comment 6 replies
-
Thanks for the input, Andrew. The value might be null, but the code could be changed to |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking into the Orleans code and it seems to me that this condition is always true:
if (workItemGroup?.TaskScheduler is TaskScheduler scheduler)
- linkActivationTaskScheduler TaskScheduler
property is actually not nullable and always initialized to ActivationTaskScheduler instance, right?the same redundant checks also can be found in other places
Beta Was this translation helpful? Give feedback.
All reactions