You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two issues. We shouldn't be setting logical location index to 0 in cases where we can't find the logical location in the index map (we should be setting -1 in this case or possibly erroring out). also, the conditional around decorated name doesn't make obvious sense.
_logicalLocationToIndexMap.TryGetValue(logicalLocation, out int index);
if (!string.IsNullOrEmpty(logicalLocation.DecoratedName))
{
logicalLocation.DecoratedName = v1Location.DecoratedName;
_logicalLocationToIndexMap[logicalLocation] = index;
}
location.LogicalLocationIndex = index;
The text was updated successfully, but these errors were encountered:
Two issues. We shouldn't be setting logical location index to 0 in cases where we can't find the logical location in the index map (we should be setting -1 in this case or possibly erroring out). also, the conditional around decorated name doesn't make obvious sense.
The text was updated successfully, but these errors were encountered: