Merge pull request #92829 from marload/patch-0706-04

Refactoring: Reduce unnecessary lines
This commit is contained in:
Kubernetes Prow Robot 2020-10-19 19:12:07 -07:00 committed by GitHub
commit 3b868e1a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,9 +69,8 @@ def get_all_files(rootdir):
for name in files:
pathname = os.path.join(root, name)
if is_binary(pathname):
continue
all_files.append(pathname)
if not is_binary(pathname):
all_files.append(pathname)
return all_files
# Collects all the flags used in golang files and verifies the flags do