We use sonar cloud to perform check in the VSTS pipeline. Some of the bugs reported seem to be apparently wrong.
if (entityBaselineBlocks?.Any() ?? false)
it’s a combination of two c# features:
- null propagation
- null coalescing operator
Using that combination we’re doing two checks in one if statement. However, sonar report says that the code underneath that condition will be never executed. Could you please check and make appropriate changes?