Revert "Update to latest .Net SDK 7.0 (#1760)" (#1763)

This reverts commit 71cda5bbdc.
This commit is contained in:
Karl Burtram
2022-11-15 11:29:41 -08:00
committed by GitHub
parent 71cda5bbdc
commit 3a5935df99
48 changed files with 107 additions and 144 deletions

View File

@@ -23,7 +23,10 @@ namespace Microsoft.SqlTools.Utility
{
foreach (var key in keys)
{
_cache.Remove(key);
if (_cache.ContainsKey(key))
{
_cache.Remove(key);
}
}
}
}, out exception);

View File

@@ -19,7 +19,6 @@ namespace Microsoft.SqlTools.Utility
public T GetOptionValue<T>(string name, T defaultValue = default(T))
{
#pragma warning disable CA1854
T result = defaultValue;
if (Options != null && Options.ContainsKey(name))
{
@@ -35,7 +34,6 @@ namespace Microsoft.SqlTools.Utility
"Cannot convert option value {0}:{1} to {2}", name, value ?? "", typeof(T)));
}
}
#pragma warning restore CA1854
return result;
}