mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
remove unnecessary changed_files variable
This commit is contained in:
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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user