Refactoring: Reduce unnecessary lines

This commit is contained in:
marload 2020-07-06 21:19:35 +09:00
parent 865cbf0bdf
commit 429672037c

View File

@ -69,8 +69,7 @@ def get_all_files(rootdir):
for name in files: for name in files:
pathname = os.path.join(root, name) pathname = os.path.join(root, name)
if is_binary(pathname): if not is_binary(pathname):
continue
all_files.append(pathname) all_files.append(pathname)
return all_files return all_files