Skip to content

Commit

Permalink
Check for error in repo middleware (#3688)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
  • Loading branch information
qwerty287 and xoxys authored May 11, 2024
1 parent b00b9f7 commit f8151aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/router/middleware/session/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8151aa

Please sign in to comment.