aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-05-11 21:34:07 +0100
committerPaulo Gomes <pjbgf@linux.com>2023-05-11 21:34:07 +0100
commit9dfaf6acd8e3aa1c85bcce7d45f8e8c6b908319c (patch)
tree58e4dc8c6b2071259eba56169ece9e4cf2c3c93c /remote.go
parentdc2b346ed149080199d578f0190f3ac1156480c2 (diff)
downloadgo-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.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/remote.go b/remote.go
index df26491..dd12f8a 100644
--- a/remote.go
+++ b/remote.go
@@ -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) {