Skip to content

Commit 876d7b1

Browse files
committed
remove RepoID test
1 parent 7882390 commit 876d7b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/api/v1/repo/release_tags.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ func GetReleaseTag(ctx *context.APIContext) {
5555
return
5656
}
5757

58-
if err != nil && models.IsErrReleaseNotExist(err) ||
59-
release.IsTag || release.RepoID != ctx.Repo.Repository.ID {
58+
if err != nil && models.IsErrReleaseNotExist(err) || release.IsTag {
6059
ctx.NotFound()
6160
return
6261
}

0 commit comments

Comments
 (0)