Skip to content

Commit df6ce36

Browse files
committed
Removing debugging code
1 parent 9c63805 commit df6ce36

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Source/Infrastructure/Dynamic/ExpandoObjectExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,6 @@ indexer.Identifier is int index &&
237237
/// <exception cref="ChildrenPropertyIsNotEnumerable">Thrown if there is an existing property and it is not enumerable.</exception>
238238
public static ICollection<TChild> EnsureCollection<TChild>(this ExpandoObject target, PropertyPath childrenProperty, ArrayIndexers arrayIndexers)
239239
{
240-
var stackTrace = Environment.StackTrace;
241-
var isRootCall = stackTrace.Contains("EnsureCollection") && childrenProperty.Path.Contains("Hubs") && !childrenProperty.Path.Contains("Configurations");
242-
if (isRootCall)
243-
{
244-
}
245-
246240
var inner = target.EnsurePath(childrenProperty, arrayIndexers) as IDictionary<string, object>;
247241
if (!inner.TryGetValue(childrenProperty.LastSegment.Value, out var value) || value is null)
248242
{

0 commit comments

Comments
 (0)