mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 01:25:43 -05:00
Address warnings and (some) nullables (#2013)
This commit is contained in:
@@ -1869,10 +1869,10 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
||||
{
|
||||
lock (this.parseMapLock)
|
||||
{
|
||||
if (this.ScriptParseInfoMap.ContainsKey(uri))
|
||||
if (this.ScriptParseInfoMap.TryGetValue(uri, out ScriptParseInfo value))
|
||||
{
|
||||
Logger.Verbose($"Found ScriptParseInfo for uri {uri}");
|
||||
return this.ScriptParseInfoMap[uri];
|
||||
return value;
|
||||
}
|
||||
else if (createIfNotExists)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user