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 /remote.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 'remote.go')
-rw-r--r-- | remote.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1250,11 +1250,7 @@ func (r *Remote) buildFetchedTags(refs memory.ReferenceStorage) (updated bool, e // operation is complete, an error is returned. The context only affects to the // transport operations. func (r *Remote) ListContext(ctx context.Context, o *ListOptions) (rfs []*plumbing.Reference, err error) { - refs, err := r.list(ctx, o) - if err != nil { - return refs, err - } - return refs, nil + return r.list(ctx, o) } func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) { |