♻️ (flows.py): rename loop variable flow to _flow to avoid shadowing and improve readability

This commit is contained in:
cristhianzl 2024-06-25 16:32:17 -03:00 committed by Gabriel Luiz Freitas Almeida
commit fa4dd19ce6

View file

@ -49,8 +49,8 @@ def create_flow(
if flows:
extract_number = re.compile(r"\((\d+)\)$")
numbers = []
for flow in flows:
result = extract_number.search(flow.name)
for _flow in flows:
result = extract_number.search(_flow.name)
if result:
numbers.append(int(result.groups(1)[0]))
if numbers: