From 4553b3ada6be15c47250bfb7948493b6cb88031b Mon Sep 17 00:00:00 2001 From: Jesse Ezell Date: Wed, 26 Mar 2014 12:20:54 -0700 Subject: [PATCH] fix go 1.0 compile error --- diff.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/diff.go b/diff.go index 68ea9af..09481b4 100644 --- a/diff.go +++ b/diff.go @@ -423,8 +423,6 @@ func (v *Repository) DiffTreeToTree(oldTree, newTree *Tree, opts *DiffOptions) ( if notifyData != nil && notifyData.Diff != nil { return notifyData.Diff, nil - } else { - return newDiffFromC(diffPtr), nil } - + return newDiffFromC(diffPtr), nil }