From d83a546d2327c06c7ba121bad1b988ddd33951fe Mon Sep 17 00:00:00 2001 From: lhchavez Date: Tue, 18 Aug 2020 09:51:27 -0700 Subject: [PATCH] revert more bits --- rebase.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rebase.go b/rebase.go index 6e67669..d29e183 100644 --- a/rebase.go +++ b/rebase.go @@ -108,7 +108,7 @@ func (ro *RebaseOptions) toC() *C.git_rebase_options { if ro == nil { return nil } - opts := &C.git_rebase_options{ + return &C.git_rebase_options{ version: C.uint(ro.Version), quiet: C.int(ro.Quiet), inmemory: C.int(ro.InMemory), @@ -116,8 +116,6 @@ func (ro *RebaseOptions) toC() *C.git_rebase_options { merge_options: *ro.MergeOptions.toC(), checkout_options: *ro.CheckoutOptions.toC(), } - - return opts } func mapEmptyStringToNull(ref string) *C.char {