Apply formatting

This commit is contained in:
Cory Benfield committed 2020-07-17 10:06:44 +01:00
1 parent 89ef2cf73d
commit 3f73125a0d
28 files changed
+198 -184

No files matched your search

@@ -32,20 +32,20 @@ struct KeyedInnerListDecoder<Key: CodingKey, BaseData: RandomAccessCollection> w
extension KeyedInnerListDecoder: KeyedDecodingContainerProtocol {
var codingPath: [CodingKey] {
return self.decoder.codingPath
self.decoder.codingPath
}
var allKeys: [Key] {
return keyedInnerListDecoderSupportedKeys.compactMap { Key(stringValue: $0) }
keyedInnerListDecoderSupportedKeys.compactMap { Key(stringValue: $0) }
}
func contains(_ key: Key) -> Bool {
return keyedInnerListDecoderSupportedKeys.contains(key.stringValue)
keyedInnerListDecoderSupportedKeys.contains(key.stringValue)
}
func decodeNil(forKey key: Key) throws -> Bool {
// Keys are never nil for this type.
return false
false
}
func decode<T>(_ type: T.Type, forKey key: Key) throws -> T where T: Decodable {