remove unnecessary changed_files variable

This commit is contained in:
Charles Kerr 2017-12-19 15:37:41 -06:00
parent b6c16a520a
commit 512fb670b4

5
script/cpplint.py vendored
View file

@ -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))