Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical in CreateLocation(LocationVersionOne) looks weird/broken #1183

Open
michaelcfanning opened this issue Dec 26, 2018 · 0 comments
Open

Comments

@michaelcfanning
Copy link
Member

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant