Skip to content

Commit

Permalink
Merge pull request kubernetes#92829 from marload/patch-0706-04
Browse files Browse the repository at this point in the history
Refactoring: Reduce unnecessary lines
  • Loading branch information
k8s-ci-robot authored Oct 20, 2020
2 parents b8ecff2 + 4296720 commit 3b868e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hack/verify-flags-underscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b868e1

Please sign in to comment.