From 05ff98103f9f2a2367c794a15dc0ad4d42cfc634 Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Sun, 1 Jan 2023 17:50:30 +0100 Subject: [PATCH] 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 --- pyproject_requirements_txt.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyproject_requirements_txt.py b/pyproject_requirements_txt.py index d2389e8..5ff1f26 100644 --- a/pyproject_requirements_txt.py +++ b/pyproject_requirements_txt.py @@ -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)