-
Notifications
You must be signed in to change notification settings - Fork 105
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
Minor updates. #509
Minor updates. #509
Conversation
…'s empty. StringOrMarkupContent implict conversion should be nullable.
@@ -17,9 +17,9 @@ public record StringOrMarkupContent | |||
public MarkupContent? MarkupContent { get; } | |||
public bool HasMarkupContent => String == null; | |||
|
|||
public static implicit operator StringOrMarkupContent(string value) => new StringOrMarkupContent(value); | |||
public static implicit operator StringOrMarkupContent?(string? value) => value is null ? null : new StringOrMarkupContent(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have NotNullIfNotNull
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@david-driscoll doesn't look like this was addressed.
Codecov Report
@@ Coverage Diff @@
## master #509 +/- ##
==========================================
- Coverage 73.46% 69.85% -3.61%
==========================================
Files 256 256
Lines 12246 12246
Branches 827 827
==========================================
- Hits 8996 8554 -442
- Misses 3250 3428 +178
- Partials 0 264 +264
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to have a variant that doesn't require the serialization of the resolver handler ID, /cc @ToddGrun since we'll both probably want to adopt this for perf reasons.
cc @NTaylorMullen @333fred