Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Dec 23, 2024

Signed-off-by: Vincent Biret [email protected]

Comment on lines +102 to +105
if (value.GetValueKind() == JsonValueKind.Number)
Value = value.GetValue<decimal>().ToString(CultureInfo.InvariantCulture);
else
Value = value.GetValue<string>();

Check notice

Code scanning / CodeQL

Missed ternary opportunity Note

Both branches of this 'if' statement write to the same variable - consider using '?' to express intent better.
@sonarqubecloud
Copy link

@baywet baywet merged commit ff7b4a9 into dev Dec 24, 2024
12 checks passed
@baywet baywet deleted the fix/enum-description-int-values branch December 24, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants