mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Errors merging optimization
This commit is contained in:
@@ -83,7 +83,9 @@ public func mergeErrors(
|
||||
) -> [DeserializationError] {
|
||||
var resultingErrors: [DeserializationError] = []
|
||||
errors.forEach {
|
||||
resultingErrors.append(contentsOf: $0?.asArray() ?? [])
|
||||
if let item = $0 {
|
||||
resultingErrors.append(contentsOf: item)
|
||||
}
|
||||
}
|
||||
return resultingErrors
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user