diff options
| author | David Calavera <[email protected]> | 2015-01-08 14:21:29 -0800 |
|---|---|---|
| committer | David Calavera <[email protected]> | 2015-01-08 14:21:29 -0800 |
| commit | 22f4a4edaa0c45979081993b92873a45d443e171 (patch) | |
| tree | 132344c165a23d1da01611e0b4c4ad001ddff284 | |
| parent | 9b914e07cc314daa42e61807b23350b2571f643f (diff) | |
Do not double check if the signature is nil.
| -rw-r--r-- | submodule.go | 4 |
1 files changed, 1 insertions, 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() } |
