Removed Useless Argument Check
This commit is contained in:
parent
aa7dfab1cf
commit
6ffad323ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue