Skip to content

Commit cfe9488

Browse files
committed
don't bind on unused part of pattern match.
1 parent 5a80661 commit cfe9488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/JSONAPI/Resource/Resource Object/ResourceObjectDecodingError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public struct ResourceObjectDecodingError: Swift.Error, Equatable {
7777
init?(_ jsonAPIError: JSONAPICodingError, jsonAPIType: String) {
7878
self.resourceObjectJsonAPIType = jsonAPIType
7979
switch jsonAPIError {
80-
case .typeMismatch(expected: let expected, found: let found, path: let path):
80+
case .typeMismatch(expected: _, found: let found, path: let path):
8181
(location, subjectName) = Self.context(path: path)
8282
cause = .jsonTypeMismatch(foundType: found)
8383
case .quantityMismatch(expected: let expected, path: let path):

0 commit comments

Comments
 (0)