Skip to content

Commit 585dae0

Browse files
committed
[JSON] Fix UnkeyedContaier.decodeNil()
1 parent b3494aa commit 585dae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftCompilerPluginMessageHandling/JSON/JSONDecoding.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ extension JSONDecoding.UnkeyedContainer: UnkeyedDecodingContainer {
10411041
mutating func decodeNil() throws -> Bool {
10421042
if !isAtEnd && array[_currMapIdx].isNull {
10431043
advanceToNextValue()
1044+
return true
10441045
}
10451046
// The protocol states:
10461047
// If the value is not null, does not increment currentIndex.

0 commit comments

Comments
 (0)