mirror of
https://github.com/caoer/CodableFirebase.git
synced 2026-06-17 02:25:00 +08:00
updates flatMap to compactMap
This commit is contained in:
@@ -130,7 +130,7 @@ fileprivate struct _FirebaseKeyedDecodingContainer<K : CodingKey> : KeyedDecodin
|
||||
|
||||
// MARK: - KeyedDecodingContainerProtocol Methods
|
||||
public var allKeys: [Key] {
|
||||
return container.keys.flatMap { Key(stringValue: $0) }
|
||||
return container.keys.compactMap { Key(stringValue: $0) }
|
||||
}
|
||||
|
||||
public func contains(_ key: Key) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user