diff options
author | Moshe Kaplan <me@moshekaplan.com> | 2021-01-24 16:08:11 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2021-01-25 10:54:31 +0000 |
commit | e69a20f5c8515dc76a3b442e792ee28bbcecf5d5 (patch) | |
tree | 10a7fec78444cb37d65ba20924adf851d500fd2d /tools | |
parent | 009ce4b3312ea076ccad5006717f5ba1691b2ddd (diff) |
check_spelling.py: Avoid duplicating list entries
Avoid duplicating list entries and modifying a list during
iteration.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_spelling.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/check_spelling.py b/tools/check_spelling.py index 0c15ea728c..f6d4de410c 100755 --- a/tools/check_spelling.py +++ b/tools/check_spelling.py @@ -380,8 +380,6 @@ elif args.open: for f in subprocess.check_output(command).splitlines()] # Only interested in dissector files. files_staged = list(filter(lambda f : is_dissector_file(f), files_staged)) - for f in files: - files.append(f) for f in files_staged: if not f in files: files.append(f) |