Skip to content

Commit 288fd90

Browse files
authored
Merge pull request #177 from thaliproject/syntax-cleanup
slight syntax improvement
2 parents 51b419d + b2e9592 commit 288fd90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/XCTest/Public/Asynchronous/XCTestCase+NotificationExpectation.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public extension XCTestCase {
4545
.default
4646
.addObserver(forName: Notification.Name(rawValue: notificationName),
4747
object: objectToObserve,
48-
queue: nil,
49-
usingBlock: {
48+
queue: nil) {
5049
notification in
5150
guard let expectation = weakExpectation else {
5251
removeObserver()
@@ -64,7 +63,7 @@ public extension XCTestCase {
6463
expectation.fulfill()
6564
removeObserver()
6665
}
67-
})
66+
}
6867

6968
return expectation
7069
}

0 commit comments

Comments
 (0)