diff options
| -rw-r--r-- | internal/yae/source.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/yae/source.go b/internal/yae/source.go index f6fd38d..5741547 100644 --- a/internal/yae/source.go +++ b/internal/yae/source.go @@ -120,9 +120,7 @@ func (source *Source) fetchLatestGitTag() (string, error) { var latest string for i := range refs { - if strings.HasSuffix(refs[i], "^{}") { - refs[i] = strings.TrimSuffix(refs[i], "^{}") - } + refs[i] = strings.TrimSuffix(refs[i], "^{}") } if source.TagPredicate == "" { |