diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl
index 3b289fb68f..580fb08a9e 100644
--- a/templates/repo/actions/runs_list.tmpl
+++ b/templates/repo/actions/runs_list.tmpl
@@ -1,5 +1,5 @@
- {{if eq (len .Runs) 0}}
+ {{if not .Runs}}
{{svg "octicon-no-entry" 48}}
{{if $.IsFiltered}}{{ctx.Locale.Tr "actions.runs.no_results"}}{{else}}{{ctx.Locale.Tr "actions.runs.no_runs"}}{{end}}
diff --git a/templates/repo/diff/section_split.tmpl b/templates/repo/diff/section_split.tmpl
index 94dea4ac41..5b0d982e96 100644
--- a/templates/repo/diff/section_split.tmpl
+++ b/templates/repo/diff/section_split.tmpl
@@ -108,25 +108,27 @@
{{if and (eq .GetType 3) $hasmatch}}
{{$match := index $section.Lines $line.Match}}
- {{if or (gt (len $line.Comments) 0) (gt (len $match.Comments) 0)}}
+ {{if or $line.Comments $match.Comments}}
{{end}}
- {{else if gt (len $line.Comments) 0}}
+ {{else if $line.Comments}}
- {{if gt (len $line.Comments) 0}}
+ {{if $line.Comments}}