You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the AwaitableFactory.cs file, the TryGet method may return null, which is not considered good practice. To address this issue and prevent potential null reference exceptions, I recommend changing the return type to IAwaitableFactory?. This indicates that the return value can be nullable, alerting developers that they need to handle this scenario appropriately. Subsequently, we need to change five more places because of this change which is not a big deal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the AwaitableFactory.cs file, the
TryGet
method may returnnull
, which is not considered good practice. To address this issue and prevent potential null reference exceptions, I recommend changing the return type toIAwaitableFactory?
. This indicates that the return value can be nullable, alerting developers that they need to handle this scenario appropriately. Subsequently, we need to change five more places because of this change which is not a big deal.Beta Was this translation helpful? Give feedback.
All reactions