aboutsummaryrefslogtreecommitdiffstats
path: root/remote_test.go
diff options
context:
space:
mode:
authorAbhinav Gupta <mail@abhinavg.net>2021-11-27 14:26:38 -0800
committerAbhinav Gupta <mail@abhinavg.net>2021-11-27 16:39:09 -0800
commit07a8bcc71afb5814c00c7a7b19c29b0c493a18fd (patch)
treee57ec50bc3e51cea46fc589c4a3cd0586869a2aa /remote_test.go
parente4fcd078d42e945581616855ab78d8b7ed12df6c (diff)
downloadgo-git-07a8bcc71afb5814c00c7a7b19c29b0c493a18fd.tar.gz
Remove unused variables/types/functions
[staticcheck](https://staticcheck.io/) reported a number of unused fields, functions, types, and variables across the code. Where possible, use them (assert unchecked errors in tests, for example) and otherwise remove them.
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote_test.go b/remote_test.go
index df07c08..e41d802 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -875,7 +875,7 @@ func (s *RemoteSuite) TestPushPrune(c *C) {
"refs/remotes/origin/master": ref.Hash().String(),
})
- ref, err = server.Reference(plumbing.ReferenceName("refs/tags/v1.0.0"), true)
+ _, err = server.Reference(plumbing.ReferenceName("refs/tags/v1.0.0"), true)
c.Assert(err, Equals, plumbing.ErrReferenceNotFound)
}