Code inspection: '?:' expression has identical true and false branchesLast modified: 11 February 2024 Category: Potential Code Quality Issues ID: ConditionalTernaryEqualBranch EditorConfig: resharper_conditional_ternary_equal_branch_highlighting Default severity: Warning Language: C#, VB.NET Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.This one’s fairly obvious. The following expression:C#VB.NETreturn condition ? result : result;Return If(condition, result, result)is identical to the followingC#VB.NETreturn result;Return resultsince the condition does not affect what is being returned.