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>
|
/// <summary>
|
||||||
/// Endpoint for updating the initial startup wizard configuration.
|
/// Endpoint for updating the initial startup wizard configuration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="UICulture">The UI language culture.</param>
|
/// <param name="uiCulture">The UI language culture.</param>
|
||||||
/// <param name="MetadataCountryCode">The metadata country code.</param>
|
/// <param name="metadataCountryCode">The metadata country code.</param>
|
||||||
/// <param name="PreferredMetadataLanguage">The preferred language for metadata.</param>
|
/// <param name="preferredMetadataLanguage">The preferred language for metadata.</param>
|
||||||
[HttpPost("Configuration")]
|
[HttpPost("Configuration")]
|
||||||
public void UpdateInitialConfiguration(
|
public void UpdateInitialConfiguration(
|
||||||
[FromForm] string UICulture,
|
[FromForm] string uiCulture,
|
||||||
[FromForm] string MetadataCountryCode,
|
[FromForm] string metadataCountryCode,
|
||||||
[FromForm] string PreferredMetadataLanguage)
|
[FromForm] string preferredMetadataLanguage)
|
||||||
{
|
{
|
||||||
_config.Configuration.UICulture = UICulture;
|
_config.Configuration.UICulture = uiCulture;
|
||||||
_config.Configuration.MetadataCountryCode = MetadataCountryCode;
|
_config.Configuration.MetadataCountryCode = metadataCountryCode;
|
||||||
_config.Configuration.PreferredMetadataLanguage = PreferredMetadataLanguage;
|
_config.Configuration.PreferredMetadataLanguage = preferredMetadataLanguage;
|
||||||
_config.SaveConfiguration();
|
_config.SaveConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace Jellyfin.Server.Extensions
|
||||||
// Clear app parts to avoid other assemblies being picked up
|
// Clear app parts to avoid other assemblies being picked up
|
||||||
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
|
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
|
||||||
.AddApplicationPart(typeof(StartupController).Assembly)
|
.AddApplicationPart(typeof(StartupController).Assembly)
|
||||||
.AddJsonOptions(options =>
|
.AddJsonOptions(options =>
|
||||||
{
|
{
|
||||||
options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user