Skip to content

Commit 6b3cb11

Browse files
committed
Fixed a warning in XCPlaygroundPage.swift.
1 parent 193a668 commit 6b3cb11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PlaygroundSupport/XCPlayground/XCPlaygroundPage.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public final class XCPlaygroundPage {
4444
///
4545
/// - note: This function has been deprecated.
4646
@available(*,deprecated) public func captureValue<T>(value: T, withIdentifier identifier: String) {
47-
if let value = value as? AnyObject {
48-
NotificationCenter.default.post(name: "XCPCaptureValue" as NSString as NSNotification.Name, object: self, userInfo: [ "value" : value, "identifier": identifier as AnyObject])
49-
}
47+
NotificationCenter.default.post(name: "XCPCaptureValue" as NSString as NSNotification.Name, object: self, userInfo: [ "value" : value, "identifier": identifier as AnyObject])
5048
}
5149

5250
/// Indicates whether the playground page needs to execute indefinitely.

0 commit comments

Comments
 (0)