aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index 426bde9..dcb24b4 100644
--- a/remote.go
+++ b/remote.go
@@ -260,7 +260,7 @@ func (r *Remote) addReachableTags(localRefs []*plumbing.Reference, remoteRefs st
tagObject, err := object.GetObject(r.s, tag.Hash())
var tagCommit *object.Commit
if err != nil {
- return fmt.Errorf("get tag object: %w\n", err)
+ return fmt.Errorf("get tag object: %w", err)
}
if tagObject.Type() != plumbing.TagObject {
@@ -274,7 +274,7 @@ func (r *Remote) addReachableTags(localRefs []*plumbing.Reference, remoteRefs st
tagCommit, err = object.GetCommit(r.s, annotatedTag.Target)
if err != nil {
- return fmt.Errorf("get annotated tag commit: %w\n", err)
+ return fmt.Errorf("get annotated tag commit: %w", err)
}
// only include tags that are reachable from one of the refs