remove unnecessary changed_files variable
This commit is contained in:
parent
b6c16a520a
commit
512fb670b4
1 changed files with 1 additions and 4 deletions
5
script/cpplint.py
vendored
5
script/cpplint.py
vendored
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue