Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
I landed a fix for this issue, but needed to change it for a test and accidentally created a slightly different issue on account of a typo.

This is a cleaner solution.
  • Loading branch information
Esmeralda Salamone authored and Evergreen committed Jul 1, 2024
1 parent f6518e1 commit 74326b1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ public void SetDataOnSubTarget<T>(SubTarget subTarget) where T : JsonObject
T data = null;
foreach (var x in m_Datas.SelectValue())
{
if (x.GetType().Equals(typeof(T)))
if (x is T y)
{
data = x as T;
continue;
data = y;
break;
}
}

Expand Down

0 comments on commit 74326b1

Please sign in to comment.