From 8ed17c7aec87f93108157d0998ae1dfaf169f13a Mon Sep 17 00:00:00 2001 From: Marcos Griselli Date: Tue, 3 Apr 2018 09:52:36 -0300 Subject: [PATCH] updates flatMap to compactMap --- CodableFirebase/Decoder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodableFirebase/Decoder.swift b/CodableFirebase/Decoder.swift index b1c16c2..df4ca1f 100644 --- a/CodableFirebase/Decoder.swift +++ b/CodableFirebase/Decoder.swift @@ -130,7 +130,7 @@ fileprivate struct _FirebaseKeyedDecodingContainer : 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 {