Merge pull request #177 from thaliproject/syntax-cleanup
slight syntax improvement
diff --git a/Sources/XCTest/Public/Asynchronous/XCTestCase+NotificationExpectation.swift b/Sources/XCTest/Public/Asynchronous/XCTestCase+NotificationExpectation.swift
index 92f8d0a..109927f 100644
--- a/Sources/XCTest/Public/Asynchronous/XCTestCase+NotificationExpectation.swift
+++ b/Sources/XCTest/Public/Asynchronous/XCTestCase+NotificationExpectation.swift
@@ -45,8 +45,7 @@
.default
.addObserver(forName: Notification.Name(rawValue: notificationName),
object: objectToObserve,
- queue: nil,
- usingBlock: {
+ queue: nil) {
notification in
guard let expectation = weakExpectation else {
removeObserver()
@@ -64,7 +63,7 @@
expectation.fulfill()
removeObserver()
}
- })
+ }
return expectation
}