Skip to content

Commit

Permalink
Fix error message for err == nil
Browse files Browse the repository at this point in the history
No need to include the error if its actually `nil`.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed May 14, 2024
1 parent 2368908 commit 7431088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/anago/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7431088

Please sign in to comment.