Skip to content

Commit

Permalink
[INFRA] LGTM warning: Variable defined multiple times (#851)
Browse files Browse the repository at this point in the history
This assignment to 'matches' is unnecessary as it is redefined here before
this value is used.

https://lgtm.com/rules/1800095/
  • Loading branch information
DimitriPapadopoulos authored Aug 13, 2021
1 parent 03db5d9 commit 28ad463
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pdf_build_src/process_markdowns.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ def process_macros(duplicated_src_dir_path):
contents = fo.read()

# Replace code snippets in the text with their outputs
matches = re.findall("({{.*?}})", contents)
matches = re.findall(re.compile("({{.*?}})", re.DOTALL), contents)
for m in matches:
# Remove macro delimiters to get *just* the function call
Expand Down

0 comments on commit 28ad463

Please sign in to comment.