Skip to content

Commit

Permalink
Fix AnyValue.compactUnwrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Jan 18, 2023
1 parent 2221bcb commit 3f1a36d
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 3f1a36d

Please sign in to comment.