Skip to content

Commit 79ed265

Browse files
committed
format fixes
1 parent f304bf3 commit 79ed265

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionsTreeView.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,12 +659,12 @@ public static List<TreeViewItemData<ActionOrBindingData>> GetActionsAsTreeViewDa
659659

660660
private static int GetIdForGuid(Guid guid, Dictionary<Guid, int> idDictionary)
661661
{
662-
//This method is used to ensure that the same Guid always gets the same id
663-
//We use getHashCode instead of a counter, as we cannot guarantee that the same Guid will always be added in the same order
664-
//There is a tiny chance of a collision, but it is it does happen it will only affect the expanded state of the tree view
662+
// This method is used to ensure that the same Guid always gets the same id
663+
// We use getHashCode instead of a counter, as we cannot guarantee that the same Guid will always be added in the same order
664+
// There is a tiny chance of a collision, but it is it does happen it will only affect the expanded state of the tree view
665665
if (!idDictionary.TryGetValue(guid, out var id))
666666
{
667-
id = guid.GetHashCode(); //idDictionary.Values.Count > 0 ? idDictionary.Values.Max() + 1 : 0;
667+
id = guid.GetHashCode();
668668
idDictionary.Add(guid, id);
669669
}
670670
return id;

0 commit comments

Comments
 (0)