From 66de41874d2a210b47b17aa31136375124325025 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Fri, 25 Oct 2024 18:16:24 +0200 Subject: [PATCH] feat: :sparkles: use time.Time.Before() instead of Sub() --- plugin/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/util.go b/plugin/util.go index 37574d3..1b4a7b1 100644 --- a/plugin/util.go +++ b/plugin/util.go @@ -99,7 +99,7 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (string, error) { return "", fmt.Errorf("error iterating tags %w", err) } - if tagDate != nil && t.Tagger.When.Sub(*tagDate) > 0 { + if tagDate != nil && t.Tagger.When.Before(*tagDate) { continue }