Author: marek Date: 2008-01-18 04:33:41 -0500 (Fri, 18 Jan 2008) New Revision: 93235
Modified: trunk/mcs/class/System.Core/System.Linq.Expressions/Expression.cs Log: No explicit return false. Modified: trunk/mcs/class/System.Core/System.Linq.Expressions/Expression.cs =================================================================== --- trunk/mcs/class/System.Core/System.Linq.Expressions/Expression.cs 2008-01-18 09:05:19 UTC (rev 93234) +++ trunk/mcs/class/System.Core/System.Linq.Expressions/Expression.cs 2008-01-18 09:33:41 UTC (rev 93235) @@ -75,13 +75,10 @@ #region Binary Expressions static bool IsInt (Type t) { - if (t == typeof (byte) || t == typeof (sbyte) || - t == typeof (short) || t == typeof (ushort) || - t == typeof (int) || t == typeof (uint) || - t == typeof (long) || t == typeof (ulong)) - return true; - - return false; + return t == typeof (byte) || t == typeof (sbyte) || + t == typeof (short) || t == typeof (ushort) || + t == typeof (int) || t == typeof (uint) || + t == typeof (long) || t == typeof (ulong); } static bool IsNumber (Type t) @@ -89,10 +86,7 @@ if (IsInt (t)) return true; - if (t == typeof (float) || t == typeof (double) || t == typeof (decimal)) - return true; - - return false; + return t == typeof (float) || t == typeof (double) || t == typeof (decimal); } static MethodInfo GetBinaryOperator (string oper_name, Type on_type, Expression left, Expression right) _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches