The requested page is not available for the requested platform. You are viewing the content for Default platform.

CRR0004 - Ternary expression has identical branches

This analyzer detects ternary expressions that always return the same value. Check the following example.

var result = condition ? a + b : b + a; // CRR0004

Such expressions are redundant because the condition value never changes the result value. Consider modifying one of the branches or changing the ternary expression to a simple assignment.