We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6baa1b6 commit ab2bf62Copy full SHA for ab2bf62
Components/Sources/Common/Protocols/Editor.swift
@@ -32,7 +32,7 @@ public struct EditorBuilder<T: Editor> {
32
}
33
34
public static func buildArray(_ components: [[T]]) -> [T] {
35
- Array(components.joined())
+ return Array(components.joined())
36
37
38
// to use like if-else
@@ -46,6 +46,6 @@ public struct EditorBuilder<T: Editor> {
46
47
48
public static func buildOptional(_ component: [T]?) -> [T] {
49
- return []
+ return component ?? []
50
51
0 commit comments