From 25a125d3ac402a47740ad547a933c9d4f5c96f75 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). --- 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)