feat: use time.Time.Before() instead of Sub()

This commit is contained in:
RaviAnand Mohabir 2024-10-25 18:16:24 +02:00
parent 6c787535a8
commit 66de41874d

View File

@ -99,7 +99,7 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (string, error) {
return "", fmt.Errorf("error iterating tags %w", err) 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 continue
} }