aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-12-10 06:58:09 +0100
committerGitHub <noreply@github.com>2021-12-10 06:58:09 +0100
commite60e348f614a7272e4a51bdee8ba20f059ca4cce (patch)
tree15e8b08e313251925d95cb327bcf98e8f245f2ee /remote.go
parent32c4f532abd57797322e97d95dfa02821980e309 (diff)
parent557a1fdcaabd51899b9213175762ed9603409985 (diff)
downloadgo-git-e60e348f614a7272e4a51bdee8ba20f059ca4cce.tar.gz
Merge pull request #418 from abhinav/unused
Remove unused vars/types/funcs/fields
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/remote.go b/remote.go
index 0299f9c..8fee2f3 100644
--- a/remote.go
+++ b/remote.go
@@ -247,16 +247,13 @@ func (r *Remote) addReachableTags(localRefs []*plumbing.Reference, remoteRefs st
// remove any that are already on the remote
if err := remoteRefIter.ForEach(func(reference *plumbing.Reference) error {
- if _, ok := tags[*reference]; ok {
- delete(tags, *reference)
- }
-
+ delete(tags, *reference)
return nil
}); err != nil {
return err
}
- for tag, _ := range tags {
+ for tag := range tags {
tagObject, err := object.GetObject(r.s, tag.Hash())
var tagCommit *object.Commit
if err != nil {