Skip to content

Commit 7eebf17

Browse files
committed
remove unnecessary check
1 parent 1680742 commit 7eebf17

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

services/release/notes.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ type baseSelection struct {
140140
func resolveBaseTag(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Repository, headCommit *git.Commit, tagName, requestedBase string) (*baseSelection, error) {
141141
requestedBase = strings.TrimSpace(requestedBase)
142142
if requestedBase != "" {
143-
if gitRepo.IsTagExist(requestedBase) {
144-
return buildBaseSelectionForTag(gitRepo, requestedBase)
145-
}
146-
return nil, newErrReleaseNotesTagNotFound(requestedBase)
143+
return buildBaseSelectionForTag(gitRepo, requestedBase)
147144
}
148145

149146
candidate, err := autoPreviousReleaseTag(ctx, repo, tagName)

0 commit comments

Comments
 (0)