Fix error (use of undefined variable) found by pylint

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
David A. Wheeler 2017-07-30 20:13:37 -04:00
parent 48bad06778
commit 6c49d39c61
1 changed files with 1 additions and 1 deletions

View File

@ -1774,7 +1774,7 @@ def process_file_args(files, patch_infos):
# If on the command line, FORCE processing of it.
# Currently, we only process C/C++.
# check if we only want to review a patch
if ((patch_infos is not None and k in patch_infos)
if ((patch_infos is not None and f in patch_infos)
or (patch_infos is None)):
process_c_file(f, patch_infos)
elif os.path.isdir(f):