Skip to content

Commit 4296720

Browse files
committed
Refactoring: Reduce unnecessary lines
1 parent 865cbf0 commit 4296720

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hack/verify-flags-underscore.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ def get_all_files(rootdir):
6969

7070
for name in files:
7171
pathname = os.path.join(root, name)
72-
if is_binary(pathname):
73-
continue
74-
all_files.append(pathname)
72+
if not is_binary(pathname):
73+
all_files.append(pathname)
7574
return all_files
7675

7776
# Collects all the flags used in golang files and verifies the flags do

0 commit comments

Comments
 (0)