Skip to content

Commit

Permalink
remove explicitly unwrapped optionals, thanks to @petester42
Browse files Browse the repository at this point in the history
  • Loading branch information
coupgar committed Oct 30, 2015
1 parent aa39627 commit 915fc9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,11 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate

// If there is two scrollview together, we pick the superview of the inner scrollview.
// In the case of UITableViewWrepperView, the superview will be UITableView
let superViewOfScrollView = scrollView?.superview
if (superViewOfScrollView!.isKindOfClass(UIScrollView))
if let superViewOfScrollView = scrollView?.superview where superViewOfScrollView.isKindOfClass(UIScrollView)
{
scrollView = superViewOfScrollView
}

var foundScrollView = scrollView as? UIScrollView

if (foundScrollView !== nil && !foundScrollView!.scrollEnabled)
Expand Down

0 comments on commit 915fc9a

Please sign in to comment.