-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove action delegates for configuration #537
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
==========================================
+ Coverage 56.97% 57.25% +0.27%
==========================================
Files 299 299
Lines 15741 15664 -77
Branches 2174 2163 -11
==========================================
- Hits 8969 8968 -1
+ Misses 6122 6054 -68
+ Partials 650 642 -8 ☔ View full report in Codecov by Sentry. |
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.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @johnml1135)
src/Machine/src/Serval.Machine.Shared/Configuration/IServiceCollectionExtensions.cs
line 5 at r1 (raw file):
public static class IServiceCollectionExtensions { public static IMachineBuilder AddMachine(this IServiceCollection services, IConfiguration? configuration = null)
configuration
no longer needs to be optional. Then you won't need to check if configuration
is null
. You should do the same for the AddServal
method as well.
Previously, ddaspit (Damien Daspit) wrote…
Done. |
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.
Reviewed 10 of 10 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @johnml1135)
src/Serval/src/Serval.Assessment/Configuration/IServalBuilderExtensions.cs
line 18 at r2 (raw file):
var assessmentOptions = new AssessmentOptions(); builder.Configuration?.GetSection(AssessmentOptions.Key).Bind(assessmentOptions);
We don't need the null-conditional operator anymore.
src/Serval/src/Serval.Translation/Configuration/IServalBuilderExtensions.cs
line 18 at r2 (raw file):
var translationOptions = new TranslationOptions(); builder.Configuration?.GetSection(TranslationOptions.Key).Bind(translationOptions);
We don't need the null-conditional operator anymore.
Previously, ddaspit (Damien Daspit) wrote…
Fixed all. |
Previously, ddaspit (Damien Daspit) wrote…
Done. |
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.
Reviewed 4 of 4 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @johnml1135)
This addresses #518.
This change is