Skip to content

Commit

Permalink
Merge pull request kyleduo#3 from unixzii/patch-1
Browse files Browse the repository at this point in the history
remove redundant initialization of NSData.
  • Loading branch information
kyleduo authored Jul 14, 2016
2 parents 984d434 + bf8ce62 commit f9d0b34
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 f9d0b34

Please sign in to comment.