Skip to content

Commit 2f09b62

Browse files
committed
Remove accidental usage of if-expressions (GitHub Actions aren't using Swift 5.9)
1 parent b687f4d commit 2f09b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftCrossUI/Builders/TableBuilder.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public struct TableBuilder<Row> {
1414

1515
public static func buildOptional(_ component: TableColumn<Row>?) -> [TableColumn<Row>] {
1616
if let component = component {
17-
[component]
17+
return [component]
1818
} else {
19-
[]
19+
return []
2020
}
2121
}
2222

0 commit comments

Comments
 (0)