Skip to content

Commit

Permalink
Merge pull request #33 from outfoxx/fix/av-compact-unwrap
Browse files Browse the repository at this point in the history
Fix `AnyValue.compactUnwrapped`
  • Loading branch information
kdubb authored Jan 19, 2023
2 parents 2221bcb + 3f1a36d commit 236dad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PotentCodables/AnyValue/AnyValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ extension AnyValue: Value {
case .url(let value): return value
case .uuid(let value): return value
case .date(let value): return value
case .array(let value): return value.compactMap(\.unwrappedValues)
case .dictionary(let value): return value.compactMapValues { $0.unwrappedValues }
case .array(let value): return value.compactMap(\.compactUnwrapped)
case .dictionary(let value): return value.compactMapValues { $0.compactUnwrapped }
}
}

Expand Down

0 comments on commit 236dad8

Please sign in to comment.