summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-26 12:20:54 -0700
committerJesse Ezell <[email protected]>2014-03-26 12:20:54 -0700
commit4553b3ada6be15c47250bfb7948493b6cb88031b (patch)
tree0712a02c7264132623c1c2e82407862a47d1c28d
parent155f641683f09ec1a9511f42867ae3f278a6800b (diff)
fix go 1.0 compile error
-rw-r--r--diff.go4
1 files changed, 1 insertions, 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
}