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).

Related: rhbz#2168193
This commit is contained in:
Ralf Ertzinger 2023-01-01 17:50:30 +01:00 committed by Miro Hrončok
parent 9801a61106
commit 05ff98103f
1 changed files with 0 additions and 2 deletions

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)