Skip to content

Commit

Permalink
no if something { nil }
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Sep 6, 2023
1 parent a9fb495 commit 299fe75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down Expand Up @@ -243,9 +240,6 @@ var form: Form {
section.tag = "Section_B"
}
}
if true {
nil
}
NameRow("NameRow_f1") { $0.title = "Name" }
}
```
Expand Down
6 changes: 0 additions & 6 deletions Tests/ResultBuildersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -49,9 +46,6 @@ class ResultBuildersTests: BaseEurekaTests {
section.tag = "Section_B"
}
}
if true {
nil
}
NameRow("NameRow_f1") { $0.title = "Name" }
}
#endif
Expand Down

0 comments on commit 299fe75

Please sign in to comment.