Skip to content

Commit 887cecd

Browse files
committed
Move decodeNil up just below decode.
1 parent c2657de commit 887cecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BinaryDecoder.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ extension BinaryDecoder: Decoder {
218218
return try decoder.decode(type)
219219
}
220220

221+
func decodeNil() -> Bool {
222+
return true
223+
}
224+
221225
func nestedContainer<NestedKey>(keyedBy type: NestedKey.Type) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey {
222226
return try decoder.container(keyedBy: type)
223227
}
@@ -229,10 +233,6 @@ extension BinaryDecoder: Decoder {
229233
func superDecoder() throws -> Decoder {
230234
return decoder
231235
}
232-
233-
func decodeNil() -> Bool {
234-
return true
235-
}
236236
}
237237
}
238238

0 commit comments

Comments
 (0)