Skip to content

Commit

Permalink
Update NetworkRequest.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
fuekiin authored Sep 8, 2020
1 parent cd88b1c commit 3669841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/HPNetwork/NetworkRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ 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
}
// guard let image = NSImage(data: response.data) else {
// throw NSError.imageError
// }
return image
}

Expand Down

0 comments on commit 3669841

Please sign in to comment.