We weren't noting missing docblock comments.

Due to a very python-noob mistake.
This commit is contained in:
Peter Evans 2018-01-11 22:42:19 -06:00
parent 1b2e9d952b
commit a1435de0ad
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def test_name_from_func(suite, func):
# not. (Which we can determine because there should be a closing comment
# token on the line above the type.)
def has_doc_block(lines, linenum):
if lines[linenum].find('// ignore docblock'):
if lines[linenum].find('// ignore docblock') > -1:
return True
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')