Skip to content

Commit

Permalink
comment crashing extension
Browse files Browse the repository at this point in the history
  • Loading branch information
fuekiin committed Sep 8, 2020
1 parent 3669841 commit 5e94836
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Sources/HPNetwork/NetworkRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,21 @@ extension NetworkRequest where Output == UIImage {

#endif

#if canImport(AppKit)
import AppKit

extension NetworkRequest where Output == NSImage {

public func convertResponse(response: NetworkResponse) throws -> NSImage {
// guard let image = NSImage(data: response.data) else {
// throw NSError.imageError
// }
return image
}

}

#endif
//#if canImport(AppKit)
////import AppKit
////
////extension NetworkRequest where Output == NSImage {
////
//// public func convertResponse(response: NetworkResponse) throws -> NSImage {
//// // guard let image = NSImage(data: response.data) else {
//// // throw NSError.imageError
//// // }
//// return image
//// }
////
////}
//
//#endif

public enum NetworkRequestMethod: String {

Expand Down

0 comments on commit 5e94836

Please sign in to comment.