Skip to content

Commit f651272

Browse files
committed
simplify the condition
1 parent d11bf78 commit f651272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ func renderLanguageStats(ctx *context.Context) {
888888
}
889889

890890
func renderLatestRelease(ctx *context.Context) {
891-
if !ctx.Repo.Repository.UnitEnabled(ctx, unit_model.TypeReleases) || unit_model.TypeReleases.UnitGlobalDisabled() {
891+
if !ctx.Repo.Repository.UnitEnabled(ctx, unit_model.TypeReleases) {
892892
return
893893
}
894894

0 commit comments

Comments
 (0)