mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
Redundant explicit array creation in argument of 'params' parameter
was removed.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user