commit | 6ffad323ba4f723479d04182224297d90c0f9084 | [log] [tgz] |
---|---|---|
author | Mirko Nosenzo <netnose@gmail.com> | Sun Aug 28 11:21:10 2016 +0200 |
committer | Mirko Nosenzo <netnose@gmail.com> | Sun Aug 28 11:21:10 2016 +0200 |
tree | 3ae5952560e91112a3c82cb3d517e8bdf95b74e2 | |
parent | aa7dfab1cf7534f7a3b99c2688c874b0af09d9f4 [diff] |
Removed Useless Argument Check
diff --git a/checkout.go b/checkout.go index a511306..f5822c9 100644 --- a/checkout.go +++ b/checkout.go
@@ -119,9 +119,6 @@ //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