diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:34:07 +0100 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:34:07 +0100 |
commit | 9dfaf6acd8e3aa1c85bcce7d45f8e8c6b908319c (patch) | |
tree | 58e4dc8c6b2071259eba56169ece9e4cf2c3c93c /plumbing/object/rename.go | |
parent | dc2b346ed149080199d578f0190f3ac1156480c2 (diff) | |
download | go-git-9dfaf6acd8e3aa1c85bcce7d45f8e8c6b908319c.tar.gz |
*: Remove redudant err nil checks
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'plumbing/object/rename.go')
-rw-r--r-- | plumbing/object/rename.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plumbing/object/rename.go b/plumbing/object/rename.go index 0394613..ad2b902 100644 --- a/plumbing/object/rename.go +++ b/plumbing/object/rename.go @@ -741,10 +741,7 @@ func (i *similarityIndex) add(key int, cnt uint64) error { // It's the same key, so increment the counter. var err error i.hashes[j], err = newKeyCountPair(key, v.count()+cnt) - if err != nil { - return err - } - return nil + return err } else if j+1 >= len(i.hashes) { j = 0 } else { |