From 22f4a4edaa0c45979081993b92873a45d443e171 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Thu, 8 Jan 2015 14:21:29 -0800 Subject: Do not double check if the signature is nil. --- submodule.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/submodule.go b/submodule.go index 67e4fab..20fcbe9 100644 --- a/submodule.go +++ b/submodule.go @@ -342,7 +342,5 @@ func populateSubmoduleUpdateOptions(ptr *C.git_submodule_update_options, opts *S populateCheckoutOpts(&ptr.checkout_opts, opts.CheckoutOpts) populateRemoteCallbacks(&ptr.remote_callbacks, opts.RemoteCallbacks) ptr.clone_checkout_strategy = C.uint(opts.CloneCheckoutStrategy) - if opts.Signature != nil { - ptr.signature = opts.Signature.toC() - } + ptr.signature = opts.Signature.toC() } -- cgit v1.2.3