Remove dead code in pyproject_requirements_txt.py

This removes some code from pyproject_requirements_txt.py that serves no
purpose (assigns to a variable that is never used).
This commit is contained in:
Ralf Ertzinger 2023-01-01 17:50:30 +01:00
parent f21e684a67
commit 25a125d3ac

View File

@ -98,6 +98,4 @@ def expand_env_vars(lines):
return match['var']
return value
for line in lines:
if match := ENV_VAR_RE.search(line):
var = match['var']
yield ENV_VAR_RE.sub(repl, line)