CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/Newtonsoft.Json/Utilities/MiscellaneousUtils.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

                else if ((objA is double || objA is float || objA is decimal) && (objB is double || objB is float || objB is decimal))
                    return MathUtils.ApproxEquals(Convert.ToDouble(objA, CultureInfo.CurrentCulture), Convert.ToDouble(objB, CultureInfo.CurrentCulture));
                else
                    return false;

    Avoid too many return statements within this method.
    Open

                        return false;

      Avoid too many return statements within this method.
      Open

                          return MathUtils.ApproxEquals(Convert.ToDouble(objA, CultureInfo.CurrentCulture), Convert.ToDouble(objB, CultureInfo.CurrentCulture));

        Avoid too many return statements within this method.
        Open

                    return objA.Equals(objB);

          There are no issues that match your filters.

          Category
          Status