From 915fc9a0a7ed8c3f935b8988ee0023ead6962b84 Mon Sep 17 00:00:00 2001
From: Xiaobin Chen <coupgar@gmail.com>
Date: Fri, 30 Oct 2015 15:20:28 +0800
Subject: [PATCH] remove explicitly unwrapped optionals, thanks to @petester42

---
 Charts/Classes/Charts/BarLineChartViewBase.swift | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Charts/Classes/Charts/BarLineChartViewBase.swift b/Charts/Classes/Charts/BarLineChartViewBase.swift
index d73aed340f..f02bfc462b 100644
--- a/Charts/Classes/Charts/BarLineChartViewBase.swift
+++ b/Charts/Classes/Charts/BarLineChartViewBase.swift
@@ -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)