Skip to content

Commit 8024eb0

Browse files
ylnJulian Lettner
authored andcommitted
Reduce verbosity in test
Remove the argument label to reduce the verbosity in the test. (cherry picked from commit ada44cb)
1 parent f680507 commit 8024eb0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/Sanitizers/tsan-emptyarraystorage.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ class T: Thread {
2424
}
2525
}
2626

27-
func runOnThread(closure: @escaping () -> Void) {
27+
func runOnThread(_ closure: @escaping () -> Void) {
2828
let t = T(closure: closure)
2929
t.start()
3030
}
3131

32-
runOnThread(closure: {
32+
runOnThread {
3333
var oneEmptyArray: [[String:String]] = []
3434
oneEmptyArray.append(contentsOf: [])
35-
})
36-
runOnThread(closure: {
35+
}
36+
runOnThread {
3737
var aCompletelyUnrelatedOtherEmptyArray: [[Double:Double]] = []
3838
aCompletelyUnrelatedOtherEmptyArray.append(contentsOf: [])
39-
})
40-
runOnThread(closure: {
39+
}
40+
runOnThread {
4141
var array = Array<Int>()
4242
array.append(contentsOf: [])
43-
})
44-
runOnThread(closure: {
43+
}
44+
runOnThread {
4545
var arraySlice = ArraySlice<Int>()
4646
arraySlice.append(contentsOf: [])
47-
})
48-
runOnThread(closure: {
47+
}
48+
runOnThread {
4949
var contiguousArray = ContiguousArray<Int>()
5050
contiguousArray.append(contentsOf: [])
51-
})
51+
}
5252

5353
for _ in 1...5 {
5454
sem.wait()

0 commit comments

Comments
 (0)