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,7 +47,8 @@ def check_html_templates(templates, all_dups):
templates) templates)
templates = sorted(list(templates)) templates = sorted(list(templates))
# Use of underscore templates <%= %>. # Use of underscore templates <%= %>.
templates.remove('templates/zerver/team.html') if 'templates/zerver/team.html' in templates:
templates.remove('templates/zerver/team.html')
template_id_dict = build_id_dict(templates) template_id_dict = build_id_dict(templates)
# TODO: Clean up these cases of duplicate ids in the code # TODO: Clean up these cases of duplicate ids in the code