Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Code fix error in CC0014 TernaryOperatorAnalyzer (assignment)  #550

@filippobottega

Description

@filippobottega

Code fix for CC0014 TernaryOperatorAnalyzer is not compatible with += operator in VB code.
Example:
Original code:
If values = String.Empty Then
values = valueString
Else
values += ", " & valueString
End If
Fixed code:
values = If(values = String.Empty, valueString, ", " & valueString)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions