aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/remote.go b/remote.go
index d54693e..9e710a3 100644
--- a/remote.go
+++ b/remote.go
@@ -247,10 +247,7 @@ 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