浏览代码

Remove unneeded closure ornamentation

Elvis Nuñez 9 年之前
父节点
当前提交
c0d8a7d3e8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Example-iOS/demos/BasicUIScrollViewController.swift

+ 3 - 3
Example-iOS/demos/BasicUIScrollViewController.swift

@@ -43,16 +43,16 @@ class BasicUIScrollViewController: UIViewController {
         
         if (!didSetupConstraints) {
             
-            scrollView.snp_makeConstraints { (make) -> Void in
+            scrollView.snp_makeConstraints { make in
                 make.edges.equalTo(view).inset(UIEdgeInsetsZero)
             }
             
-            contentView.snp_makeConstraints { (make) -> Void in
+            contentView.snp_makeConstraints { make in
                 make.edges.equalTo(scrollView).inset(UIEdgeInsetsZero)
                 make.width.equalTo(scrollView)
             }
             
-            label.snp_makeConstraints { (make) -> Void in
+            label.snp_makeConstraints { make in
                 make.top.equalTo(contentView).inset(20)
                 make.leading.equalTo(contentView).inset(20)
                 make.trailing.equalTo(contentView).inset(20)