mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 17:52:45 +08:00
create_manpage_completions.py: refactor: remove unnecessary 'skip'
This commit is contained in:
parent
0c9e651fdf
commit
0d863378ea
@ -929,16 +929,10 @@ def parse_and_output_man_pages(paths, output_directory, show_progress):
|
||||
sys.stdout.write("\r{0}\r".format(padded_progress_str))
|
||||
sys.stdout.flush()
|
||||
|
||||
# Maybe we want to skip this item
|
||||
skip = False
|
||||
if not WRITE_TO_STDOUT:
|
||||
# Compute the path that we would write to
|
||||
output_path = os.path.join(output_directory, output_file_name)
|
||||
|
||||
# Now skip if requested
|
||||
if skip:
|
||||
continue
|
||||
|
||||
try:
|
||||
if parse_manpage_at_path(manpage_path, output_directory):
|
||||
successful_count += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user