From 512fb670b4139895e5799016d86fbe1a47962775 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 19 Dec 2017 15:37:41 -0600 Subject: [PATCH] remove unnecessary changed_files variable --- script/cpplint.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script/cpplint.py b/script/cpplint.py index fb73cdf0103..ecc99f8ab6c 100755 --- a/script/cpplint.py +++ b/script/cpplint.py @@ -67,9 +67,6 @@ def main(): print("[INFO] Skipping cpplint, dependencies has not been bootstrapped") return - if args.only_changed: - changed_files = get_changed_files() - if args.verbose: enable_verbose_mode() @@ -82,7 +79,7 @@ def main(): files += list_files('brightray', ['browser', 'common'], ['*.cc', '*.h']) files -= ignore if args.only_changed: - files &= changed_files + files &= get_changed_files() call_cpplint(list(files))