Use correct naming convention for _relevantEnvVarPrefixes

This commit is contained in:
Mark Monteiro 2020-04-05 09:05:23 -04:00
parent 0e57348cf4
commit bc91445b5d

View File

@ -120,7 +120,7 @@ namespace Emby.Server.Implementations
/// <summary>
/// The environment variable prefixes to log at server startup.
/// </summary>
private static readonly string[] RelevantEnvVarPrefixes = { "JELLYFIN_", "DOTNET_", "ASPNETCORE_" };
private static readonly string[] _relevantEnvVarPrefixes = { "JELLYFIN_", "DOTNET_", "ASPNETCORE_" };
private SqliteUserRepository _userRepository;
private SqliteDisplayPreferencesRepository _displayPreferencesRepository;
@ -897,7 +897,7 @@ namespace Emby.Server.Implementations
var relevantEnvVars = new Dictionary<object, object>();
foreach (var key in allEnvVars.Keys)
{
if (RelevantEnvVarPrefixes.Any(prefix => key.ToString().StartsWith(prefix, StringComparison.OrdinalIgnoreCase)))
if (_relevantEnvVarPrefixes.Any(prefix => key.ToString().StartsWith(prefix, StringComparison.OrdinalIgnoreCase)))
{
relevantEnvVars.Add(key, allEnvVars[key]);
}