Skip to content

Conversation

@itingliu
Copy link
Contributor

  • Remove an unused variable.
  • Calling JSONDecoder's func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T with Decimal.FormatStyle.Currency as the type isn't correct. But for some reason, the compiler allows it incorrectly. Fix it.
  • Clean up whitespaces while we're here.

- Remove an unused variable.
- Calling `JSONDecoder`'s `func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T` with `Decimal.FormatStyle.Currency` as the type isn't correct. But for some reason, the compiler allows it incorrectly. Fix it.
- Clean up whitespaces while we're here.
@itingliu itingliu requested a review from jmschonfeld January 21, 2025 21:35
@itingliu
Copy link
Contributor Author

@swift-ci please test

@itingliu itingliu merged commit f978f94 into swiftlang:main Jan 22, 2025
2 of 3 checks passed
@itingliu itingliu deleted the follow-up-1074 branch January 22, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants