Skip to content

Commit de7692c

Browse files
committed
opt: type inference in test
1 parent 1cbc79f commit de7692c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Tests/ExCodableTests/ExCodableTests.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ final class ExCodableTests: XCTestCase {
333333
let test = TestAutoCodable(int: 100, string: "Continue")
334334
if let data = try? test.encoded() as Data,
335335
let copy = try? data.decoded() as TestAutoCodable,
336-
let json: [String: Any] = try? JSONSerialization.jsonObject(with: data) as? [String: Any] {
336+
let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any] {
337337
XCTAssertEqual(copy, test)
338338
XCTAssertEqual(NSDictionary(dictionary: json), ["i": 100, "s": "Continue"])
339339
}

0 commit comments

Comments
 (0)