Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kyleduo/TinyPNG4Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleduo committed Jul 15, 2016
2 parents 3d0ee37 + f9d0b34 commit 124792b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tinypng4mac/tpclient/TPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TPClient {
}

func executeTask(task: TPTaskInfo) -> Bool {
var imageData: NSData = NSData()
var imageData: NSData!
do {
let fileHandler = try NSFileHandle(forReadingFromURL:task.originFile)
imageData = fileHandler.readDataToEndOfFile()
Expand Down Expand Up @@ -145,4 +145,4 @@ class TPClient {
NSNotificationCenter.defaultCenter().postNotificationName("statusChanged", object: task)
}
}
}
}

0 comments on commit 124792b

Please sign in to comment.