Skip to content

Commit

Permalink
fix decoding error (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-pixel authored Mar 3, 2025
1 parent dff8c5b commit d45b26f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Sources/AppAttest/Attestation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ extension Attestation {
if let environment = Environment(bytes: dataEnvironment) {
self.environment = environment
} else {
throw DecodingError.typeMismatch(
Environment.self,
.init(
codingPath: [CodingKeys.environment],
debugDescription:
"value is not a valid AAGUID: \(String(decoding: dataEnvironment, as: UTF8.self))"
)
throw DecodingError.dataCorruptedError(
in: container,
debugDescription: "value is not a valid AAGUID: \(String(decoding: dataEnvironment, as: UTF8.self))"
)
}

Expand Down

0 comments on commit d45b26f

Please sign in to comment.