Skip to content

Commit ada44cb

Browse files
committed
Reduce verbosity in test
Remove the argument label to reduce the verbosity in the test.
1 parent 381dcc2 commit ada44cb

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
@@ -25,31 +25,31 @@ class T: Thread {
2525
}
2626
}
2727

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

33-
runOnThread(closure: {
33+
runOnThread {
3434
var oneEmptyArray: [[String:String]] = []
3535
oneEmptyArray.append(contentsOf: [])
36-
})
37-
runOnThread(closure: {
36+
}
37+
runOnThread {
3838
var aCompletelyUnrelatedOtherEmptyArray: [[Double:Double]] = []
3939
aCompletelyUnrelatedOtherEmptyArray.append(contentsOf: [])
40-
})
41-
runOnThread(closure: {
40+
}
41+
runOnThread {
4242
var array = Array<Int>()
4343
array.append(contentsOf: [])
44-
})
45-
runOnThread(closure: {
44+
}
45+
runOnThread {
4646
var arraySlice = ArraySlice<Int>()
4747
arraySlice.append(contentsOf: [])
48-
})
49-
runOnThread(closure: {
48+
}
49+
runOnThread {
5050
var contiguousArray = ContiguousArray<Int>()
5151
contiguousArray.append(contentsOf: [])
52-
})
52+
}
5353

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

0 commit comments

Comments
 (0)