Browse Source

Remove some brackets

Ashley Mills 9 years ago
parent
commit
eee2a017f0

+ 1 - 1
ReachabilityAppleTVSample/ViewController.swift

@@ -47,7 +47,7 @@ class ViewController: UIViewController {
             return
         } catch {}
         
-        if (useClosures) {
+        if useClosures {
             reachability?.whenReachable = { reachability in
                 self.updateLabelColourWhenReachable(reachability)
             }

+ 1 - 1
ReachabilityMacSample/ViewController.swift

@@ -48,7 +48,7 @@ class ViewController: NSViewController {
       return
     } catch {}
 
-    if (useClosures) {
+    if useClosures {
       reachability?.whenReachable = { reachability in
         self.updateLabelColourWhenReachable(reachability)
       }

+ 1 - 1
ReachabilitySample/ViewController.swift

@@ -53,7 +53,7 @@ class ViewController: UIViewController {
             return
         } catch {}
         
-        if (useClosures) {
+        if useClosures {
             reachability?.whenReachable = { reachability in
                 DispatchQueue.main.async {
                     self.updateLabelColourWhenReachable(reachability)