Inline 'out' variable declarations

(cherry picked from commit 281add47de1d3940990156c841362125dea9cc7d)

Closes #2558
This commit is contained in:
Bogdan
2023-05-23 13:48:37 +03:00
parent fc6c78a54e
commit 89dd4d3271
38 changed files with 66 additions and 149 deletions
@@ -56,8 +56,7 @@ namespace NzbDrone.Core.Configuration
foreach (var configValue in configValues)
{
object currentValue;
allWithDefaults.TryGetValue(configValue.Key, out currentValue);
allWithDefaults.TryGetValue(configValue.Key, out var currentValue);
if (currentValue == null || configValue.Value == null)
{
continue;
@@ -439,9 +438,7 @@ namespace NzbDrone.Core.Configuration
EnsureCache();
string dbValue;
if (_cache.TryGetValue(key, out dbValue) && dbValue != null && !string.IsNullOrEmpty(dbValue))
if (_cache.TryGetValue(key, out var dbValue) && dbValue != null && !string.IsNullOrEmpty(dbValue))
{
return dbValue;
}