Lowercase actual parameters in code and remove whitespace to comply with StyleCopAnalyzers
This commit is contained in:
parent
16a66dc89c
commit
72862d7b46
|
@ -60,18 +60,18 @@ namespace Jellyfin.Api.Controllers
|
|||
/// <summary>
|
||||
/// Endpoint for updating the initial startup wizard configuration.
|
||||
/// </summary>
|
||||
/// <param name="UICulture">The UI language culture.</param>
|
||||
/// <param name="MetadataCountryCode">The metadata country code.</param>
|
||||
/// <param name="PreferredMetadataLanguage">The preferred language for metadata.</param>
|
||||
/// <param name="uiCulture">The UI language culture.</param>
|
||||
/// <param name="metadataCountryCode">The metadata country code.</param>
|
||||
/// <param name="preferredMetadataLanguage">The preferred language for metadata.</param>
|
||||
[HttpPost("Configuration")]
|
||||
public void UpdateInitialConfiguration(
|
||||
[FromForm] string UICulture,
|
||||
[FromForm] string MetadataCountryCode,
|
||||
[FromForm] string PreferredMetadataLanguage)
|
||||
[FromForm] string uiCulture,
|
||||
[FromForm] string metadataCountryCode,
|
||||
[FromForm] string preferredMetadataLanguage)
|
||||
{
|
||||
_config.Configuration.UICulture = UICulture;
|
||||
_config.Configuration.MetadataCountryCode = MetadataCountryCode;
|
||||
_config.Configuration.PreferredMetadataLanguage = PreferredMetadataLanguage;
|
||||
_config.Configuration.UICulture = uiCulture;
|
||||
_config.Configuration.MetadataCountryCode = metadataCountryCode;
|
||||
_config.Configuration.PreferredMetadataLanguage = preferredMetadataLanguage;
|
||||
_config.SaveConfiguration();
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace Jellyfin.Server.Extensions
|
|||
// Clear app parts to avoid other assemblies being picked up
|
||||
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
|
||||
.AddApplicationPart(typeof(StartupController).Assembly)
|
||||
.AddJsonOptions(options =>
|
||||
.AddJsonOptions(options =>
|
||||
{
|
||||
options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user