Simplify lambda to expression (#2009)

This commit is contained in:
xp44mm
2019-03-30 16:39:15 +13:00
committed by James Newton-King
parent 7cfeeac14a
commit 5712e024b2
@@ -47,11 +47,7 @@ namespace Newtonsoft.Json.Utilities
{
// don't convert to method group to avoid medium trust issues
// https://github.com/JamesNK/Newtonsoft.Json/issues/476
return a =>
{
object[] args = a;
return c.Invoke(args);
};
return a => c.Invoke(a);
}
return a => method.Invoke(null, a);