Hi
Sonarqube reports a bug:
"This operation returns the same value whether the condition is 'true' or 'false'." because "When the second and third operands of a ternary operator are the same, the operator will always return the same value regardless of the condition. Either the operator itself is pointless, or a mistake was made in coding it."
but the code in question is:
string resultBucket = response.IsSuccessStatusCode
? $"{statsBucket}.success.{(int) response.StatusCode}"
: $"{statsBucket}.error.{(int) response.StatusCode}";
these 2 operands are clearly *not* the same. They differ in the "success" / "failure" part. Looks like an issue in Sonarqube to me?