Skip to content

Commit

Permalink
Reduce to nil check only (Fixes ChartsOrg#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Oct 1, 2015
1 parent 8cc2813 commit 062a61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate
}
set
{
if (newValue == nil || newValue?.yValCount == 0)
if newValue == nil
{
print("Charts: data argument is nil on setData()", terminator: "\n")
return
Expand Down

0 comments on commit 062a61b

Please sign in to comment.