From 6ffad323ba4f723479d04182224297d90c0f9084 Mon Sep 17 00:00:00 2001 From: Mirko Nosenzo Date: Sun, 28 Aug 2016 11:21:10 +0200 Subject: Removed Useless Argument Check --- checkout.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'checkout.go') diff --git a/checkout.go b/checkout.go index a511306..f5822c9 100644 --- a/checkout.go +++ b/checkout.go @@ -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 -- cgit v1.2.3