We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3269433 commit d564895Copy full SHA for d564895
Sources/SwiftProtobuf/GetPathDecoder.swift
@@ -47,7 +47,7 @@ struct GetPathDecoder<T: Message>: Decoder {
47
}
48
49
private mutating func captureValue(_ value: Any?) throws {
50
- if !nextPath.isEmpty {
+ guard nextPath.isEmpty else {
51
throw PathDecodingError.pathNotFound
52
53
self._value = value
0 commit comments