From 429672037c6eb2b871961ad0ba73521cd2ccb317 Mon Sep 17 00:00:00 2001 From: marload Date: Mon, 6 Jul 2020 21:19:35 +0900 Subject: [PATCH] Refactoring: Reduce unnecessary lines --- hack/verify-flags-underscore.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/verify-flags-underscore.py b/hack/verify-flags-underscore.py index 169f7944932..8055ac106a4 100755 --- a/hack/verify-flags-underscore.py +++ b/hack/verify-flags-underscore.py @@ -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