Removed Useless Argument Check

This commit is contained in:
Mirko Nosenzo 2016-08-28 11:21:10 +02:00
parent aa7dfab1cf
commit 6ffad323ba
No known key found for this signature in database
GPG Key ID: E6EBC1DB672BD11E
1 changed files with 0 additions and 3 deletions

View File

@ -119,9 +119,6 @@ func checkoutNotifyCallback(why C.git_checkout_notify_t, cpath *C.char, cbaselin
//export checkoutProgressCallback
func checkoutProgressCallback(path *C.char, completed_steps, total_steps C.size_t, data unsafe.Pointer) int {
if data == nil {
return 0
}
opts := pointerHandles.Get(data).(*CheckoutOpts)
if opts.ProgressCallback == nil {
return 0