소스 검색

Remove some brackets

Ashley Mills 9 년 전
부모
커밋
eee2a017f0
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      ReachabilityAppleTVSample/ViewController.swift
  2. 1 1
      ReachabilityMacSample/ViewController.swift
  3. 1 1
      ReachabilitySample/ViewController.swift

+ 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)