Skip to content

Commit ceaa629

Browse files
authored
Merge pull request #165 from briancroom/warning-cleanup
Remove obsolete AnyObject cast
2 parents ed70d58 + e6533ba commit ceaa629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/XCTest/Public/XCTestCase+Asynchronous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public extension XCTestCase {
170170
// Start observing the notification with specified name and object.
171171
var observer: NSObjectProtocol? = nil
172172
func removeObserver() {
173-
if let observer = observer as? AnyObject {
173+
if let observer = observer {
174174
NotificationCenter.default.removeObserver(observer)
175175
}
176176
}

0 commit comments

Comments
 (0)