updates flatMap to compactMap

This commit is contained in:
Marcos Griselli
2018-04-03 09:52:36 -03:00
parent 3cae6e90d9
commit 8ed17c7aec

View File

@@ -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 {