Dedent this code by reversing condition and continue.
This commit is contained in:
parent
9d8c9fdf51
commit
91bf90862b
1 changed files with 13 additions and 11 deletions
|
@ -166,7 +166,9 @@ def search(
|
|||
if line_numbers:
|
||||
result_text = '%4d | %s' % (index+1, result_text)
|
||||
|
||||
if all_terms_match(search_text, terms, term_matches):
|
||||
if not all_terms_match(search_text, terms, term_matches):
|
||||
continue
|
||||
|
||||
if not content_args:
|
||||
yield result_text
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue