lint: Fix check-templates handling of team.html.

This prevents some unnecessary error messages when running the linter
on a single file.
This commit is contained in:
Tim Abbott 2017-11-25 09:41:18 -08:00
parent 13a1b44aa8
commit d639e31641
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ def check_html_templates(templates, all_dups):
templates)
templates = sorted(list(templates))
# Use of underscore templates <%= %>.
if 'templates/zerver/team.html' in templates:
templates.remove('templates/zerver/team.html')
template_id_dict = build_id_dict(templates)