You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Foundation/NSData.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -441,9 +441,9 @@ extension NSData {
441
441
///
442
442
/// This method is invoked in a `try` expression and the caller is responsible for handling any errors in the `catch` clauses of a `do` statement, as described in [Error Handling](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ErrorHandling.html#//apple_ref/doc/uid/TP40014097-CH42) in [The Swift Programming Language](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/index.html#//apple_ref/doc/uid/TP40014097) and [Error Handling](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/AdoptingCocoaDesignPatterns.html#//apple_ref/doc/uid/TP40014216-CH7-ID10) in [Using Swift with Cocoa and Objective-C](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/index.html#//apple_ref/doc/uid/TP40014216).
guardlet path = url.path where url.filePathURL==trueelse{
445
-
letuserInfo=[NSLocalizedDescriptionKey :"The folder at “\(url)” does not exist or is not a file URL.", // NSLocalizedString() not yet available
446
-
NSURLErrorKey : url.absoluteString ??""]
444
+
guardlet path = url.path where url.fileURL==trueelse{
445
+
letuserInfo=[NSLocalizedDescriptionKey :"The folder at “\(url)” does not exist or is not a file URL."asNSString, // NSLocalizedString() not yet available
0 commit comments