Skip to content

Commit 5cace9d

Browse files
committed
Fix redundant declaration compile error
1 parent 76e3909 commit 5cace9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestURLResponse.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ class TestURLResponse : XCTestCase {
5959
}
6060

6161
func test_TextEncodingName() {
62-
var encoding = "utf8"
62+
let encoding = "utf8"
6363
var res = URLResponse(url: testURL, mimeType: nil, expectedContentLength: 0, textEncodingName: encoding)
6464
XCTAssertEqual(res.textEncodingName, encoding, "should be the utf8 encoding")
6565

66-
let res = URLResponse(url: testURL, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
66+
res = URLResponse(url: testURL, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
6767
XCTAssertNil(res.textEncodingName)
6868
}
6969

0 commit comments

Comments
 (0)