From 299fe758b442f63257676e90edd4f03715793f60 Mon Sep 17 00:00:00 2001 From: Roman Podymov Date: Wed, 6 Sep 2023 17:48:24 +0200 Subject: [PATCH] no if something { nil } --- README.md | 6 ------ Tests/ResultBuildersTests.swift | 6 ------ 2 files changed, 12 deletions(-) diff --git a/README.md b/README.md index ae4f77d9..2a695e7c 100644 --- a/README.md +++ b/README.md @@ -208,9 +208,6 @@ Eureka includes result builders to make form creation easy: ```swift // Section + Section form = (Section("A") +++ { - if true { - nil - } URLRow("UrlRow_f1") { $0.title = "Url" } if something { TwitterRow("TwitterRow_f2") { $0.title = "Twitter" } @@ -243,9 +240,6 @@ var form: Form { section.tag = "Section_B" } } - if true { - nil - } NameRow("NameRow_f1") { $0.title = "Name" } } ``` diff --git a/Tests/ResultBuildersTests.swift b/Tests/ResultBuildersTests.swift index 882cfef2..e8d59691 100644 --- a/Tests/ResultBuildersTests.swift +++ b/Tests/ResultBuildersTests.swift @@ -29,9 +29,6 @@ class ResultBuildersTests: BaseEurekaTests { #if swift(>=5.4) @SectionBuilder var section1: Section { - if true { - nil - } NameRow("NameRow_f1") { $0.title = "Name" } if true { IntRow("IntRow_f1") { $0.title = "Int" } @@ -49,9 +46,6 @@ class ResultBuildersTests: BaseEurekaTests { section.tag = "Section_B" } } - if true { - nil - } NameRow("NameRow_f1") { $0.title = "Name" } } #endif