Skip to content

Commit

Permalink
unwrap h
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Stephens committed Sep 16, 2017
1 parent e88d0c4 commit e2fecde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Charts/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -559,14 +559,14 @@ open class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate

if callDelegate, let delegate = delegate
{
if h == nil
if let h = h
{
delegate.chartValueNothingSelected?(self)
// notify the listener
delegate.chartValueSelected?(self, entry: entry!, highlight: h)
}
else
{
// notify the listener
delegate.chartValueSelected?(self, entry: entry!, highlight: h!)
delegate.chartValueNothingSelected?(self)
}
}

Expand Down

0 comments on commit e2fecde

Please sign in to comment.