Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor repo unit "disabled" check #31389

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update routers/web/web.go
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
wxiaoguang and silverwind committed Jun 17, 2024
commit 3d26c9d50f15208696f8a83d379df60a62c1a1e5
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func registerRoutes(m *web.Route) {
return func(ctx *context.Context) {
// only check global disabled units when ignoreGlobal is false
if !ignoreGlobal && unitType.UnitGlobalDisabled() {
ctx.NotFound("Repo unit is is disabled:"+unitType.LogString(), nil)
ctx.NotFound("Repo unit is is disabled: "+unitType.LogString(), nil)
return
}

Expand Down