mirror of https://github.com/zulip/zulip.git
Clean up while loop in check-templates.
(imported from commit 79c2cc2b1ced0fc80b0a1996fd9150b39e689a31)
This commit is contained in:
parent
9da693c371
commit
a07299f1d6
|
@ -65,9 +65,8 @@ def validate(fn, check_indent=True):
|
|||
def looking_at(s):
|
||||
return text[state.i:state.i+len(s)] == s
|
||||
|
||||
while True:
|
||||
if state.i >= len(text):
|
||||
break
|
||||
while state.i < len(text):
|
||||
|
||||
c = text[state.i]
|
||||
if c == '<':
|
||||
s = get_html_tag(text, state.i)
|
||||
|
|
Loading…
Reference in New Issue