Do not double check if the signature is nil.
This commit is contained in:
parent
9b914e07cc
commit
22f4a4edaa
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue