Redundant explicit array creation in argument of 'params' parameter

was removed.
This commit is contained in:
aedampir@gmail.com
2016-03-23 13:01:44 +07:00
parent 11d5ac510d
commit 3c5febfc53
+2 -2
View File
@@ -1457,9 +1457,9 @@ namespace Octokit
{
var ctorType = typeof(IDictionary<,>).MakeGenericType(keyType, valueType);
var genericReadonlyType = typeof(ReadOnlyDictionary<,>).MakeGenericType(keyType, valueType);
var ctor = ReflectionUtils.GetContructor(genericReadonlyType, new [] { ctorType });
var ctor = ReflectionUtils.GetContructor(genericReadonlyType, ctorType);
Debug.Assert(ctor != null);
obj = ctor.Invoke(new[] { obj });
obj = ctor.Invoke(obj);
}
#endif
}