diff options
| author | Fuwn <[email protected]> | 2025-11-24 21:21:34 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-11-24 21:21:34 -0800 |
| commit | 5616437de2e9b7db46233ee22e79717dda94d4ba (patch) | |
| tree | e96359fbe9e2cc79f3a4809c82cf52557000cbe6 | |
| parent | 87265771a159028b61012ed3cd85d2e6c9571ec9 (diff) | |
| download | yae-5616437de2e9b7db46233ee22e79717dda94d4ba.tar.xz yae-5616437de2e9b7db46233ee22e79717dda94d4ba.zip | |
refactor(source): Unconditionally trim suffix
| -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 == "" { |