Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Empty string being returned as array #307

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

nikcio
Copy link
Owner

@nikcio nikcio commented Apr 7, 2024

No description provided.

@nikcio nikcio marked this pull request as ready for review April 7, 2024 12:46
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

@@ -25,7 +25,7 @@ public BasicPropertyValue(CreatePropertyValue createPropertyValue) : base(create

Value = createPropertyValue.Property.Value(createPropertyValue.PublishedValueFallback, createPropertyValue.Culture, createPropertyValue.Segment, createPropertyValue.Fallback);

if (Value is IEnumerable list && !list.GetEnumerator().MoveNext())
if (Value is not string && Value is IEnumerable list && !list.GetEnumerator().MoveNext())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ New issue: Complex Conditional
BasicPropertyValue has 1 complex conditionals with 2 branches, threshold = 2

Suppress

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

Copy link

sonarcloud bot commented Apr 7, 2024

@nikcio nikcio merged commit 10d5927 into v4/contrib Apr 7, 2024
7 checks passed
@nikcio nikcio deleted the feature/fix-empty-string-being-returned-as-array branch April 7, 2024 13:24
@nikcio nikcio restored the feature/fix-empty-string-being-returned-as-array branch April 9, 2024 17:05
@nikcio nikcio deleted the feature/fix-empty-string-being-returned-as-array branch April 9, 2024 17:05
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.

1 participant