Skip to content

Commit

Permalink
Undo my fix in favor of fix from Peter T. LaComb Jr
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmskywalker committed Oct 25, 2020
1 parent a4c0c57 commit 16611e2
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ private object ConvertValue(JsValue value, Type targetType)

if (value.IsArray())
{
if (targetType == null)
targetType = typeof(object[]);

var arrayInstance = value.AsArray();
var elementType = targetType?.GetElementType() ?? targetType?.GenericTypeArguments?.First() ?? typeof(object);

Expand Down

0 comments on commit 16611e2

Please sign in to comment.