From 3c5febfc534dd46b951545908194cc875974bc27 Mon Sep 17 00:00:00 2001 From: "aedampir@gmail.com" Date: Wed, 23 Mar 2016 13:01:44 +0700 Subject: [PATCH] Redundant explicit array creation in argument of 'params' parameter was removed. --- Octokit/SimpleJson.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit/SimpleJson.cs b/Octokit/SimpleJson.cs index 80fe3454..8f325b99 100644 --- a/Octokit/SimpleJson.cs +++ b/Octokit/SimpleJson.cs @@ -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 }