We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e08180 commit c742e38Copy full SHA for c742e38
piptools/build.py
@@ -204,12 +204,11 @@ def _env_var(
204
finally:
205
if pip_constraint_was_unset:
206
del os.environ[env_var_name]
207
- return
208
-
209
- # Assert here is necessary because MyPy can't infer type
210
- # narrowing in the complex case.
211
- assert isinstance(original_pip_constraint, str)
212
- os.environ[env_var_name] = original_pip_constraint
+ else:
+ # Assert here is necessary because MyPy can't infer type
+ # narrowing in the complex case.
+ assert isinstance(original_pip_constraint, str)
+ os.environ[env_var_name] = original_pip_constraint
213
214
215
@contextlib.contextmanager
0 commit comments