Skip to content

Commit ad58f8c

Browse files
author
Itai Ferber
committed
Remove references to NSCocoaError (→ CocoaError)
1 parent c26f465 commit ad58f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/NSURLSession/NSURLSessionTask.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ fileprivate var userAgentString: String = {
655655
fileprivate func errorCode(fileSystemError error: Error) -> Int {
656656
func fromCocoaErrorCode(_ code: Int) -> Int {
657657
switch code {
658-
case NSCocoaError.FileReadNoSuchFileError.rawValue:
658+
case CocoaError.fileReadNoSuchFile.rawValue:
659659
return NSURLErrorFileDoesNotExist
660-
case NSCocoaError.FileReadNoPermissionError.rawValue:
660+
case CocoaError.fileReadNoPermission.rawValue:
661661
return NSURLErrorNoPermissionsToReadFile
662662
default:
663663
return NSURLErrorUnknown

0 commit comments

Comments
 (0)