From 7431088390982261d549fdef911f793ec85b4ab4 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 14 May 2024 11:08:57 +0200 Subject: [PATCH] Fix error message for `err == nil` No need to include the error if its actually `nil`. Signed-off-by: Sascha Grunert --- pkg/anago/stage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/anago/stage.go b/pkg/anago/stage.go index b9bdc1190ca..a95571a16c1 100644 --- a/pkg/anago/stage.go +++ b/pkg/anago/stage.go @@ -413,7 +413,7 @@ func (d *DefaultStage) TagRepository() error { // Ensure that the tag not already exists if _, err := d.impl.RevParseTag(repo, version); err == nil { - return fmt.Errorf("tag %s already exists: %w", version, err) + return fmt.Errorf("tag %s already exists", version) } // Usually the build version contains a commit we can reference. If