Check for error in repo middleware (#3688)

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
qwerty287
2024-05-11 10:38:35 +02:00
committed by GitHub
parent b00b9f7ade
commit f8151aa97d

View File

@@ -66,7 +66,7 @@ func SetRepo() gin.HandlerFunc {
repo, err = _store.GetRepoName(fullName)
}
if repo != nil {
if repo != nil && err == nil {
c.Set("repo", repo)
c.Next()
return