Skip to content

Commit 67026e1

Browse files
committed
simplify the condiftion
1 parent f651272 commit 67026e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
</div>
185185
{{end}}
186186

187-
{{if and (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo) .LanguageStats}}
187+
{{if and (not .IsEmptyRepo) .LanguageStats}}
188188
<div class="flex-item">
189189
<div class="flex-item-main">
190190
<div class="flex-item-title">

0 commit comments

Comments
 (0)