mirror of
https://github.com/ansible/ansible.git
synced 2026-07-28 16:15:12 +02:00
ansible-test - Fix codespell test (#86419)
Prevent a traceback when test results are empty.
This commit is contained in:
@@ -84,7 +84,8 @@ def main() -> None:
|
||||
|
||||
results.append(f"{path}:{line_num}:{col_num}: {code}: {left} ==> {right}")
|
||||
|
||||
print('\n'.join(results))
|
||||
if results:
|
||||
print('\n'.join(results))
|
||||
|
||||
|
||||
def parse_to_list_of_dict(pattern: re.Pattern, value: str) -> list[dict[str, t.Any]]:
|
||||
|
||||
Reference in New Issue
Block a user