Skip to content

Commit a607a44

Browse files
tbkkathomasvl
authored andcommitted
Change "var" to "let" in Test_Map
Fixes a warning from the Swift 5 compiler about this "var" that is never mutated. (The fix is correct for Swift 4 as well, the only change in Swift 5 is the new warning.)
1 parent f8f4067 commit a607a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftProtobufTests/Test_Map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Test_Map: XCTestCase, PBTestHelpers {
3232
while matched && !availableBlocks.isEmpty {
3333
matched = false
3434
for n in 0..<availableBlocks.count {
35-
var e = availableBlocks[n]
35+
let e = availableBlocks[n]
3636
if (e.count == t.count && t == e[0..<e.count]) {
3737
t = []
3838
availableBlocks.remove(at:n)

0 commit comments

Comments
 (0)