Skip to content
Prev Previous commit
Next Next commit
Discard changes to core/dbt/context/base.py
  • Loading branch information
aranke authored Jul 15, 2024
commit bfd6aa8f119b46f5166ee3a879f6c5d2495a81a4
7 changes: 0 additions & 7 deletions core/dbt/context/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,6 @@ def env_var(self, var: str, default: Optional[str] = None) -> str:
env = get_invocation_context().env
if var in env:
return_value = env[var]
elif os.name == "nt":
# Windows env vars are not case-sensitive
# So if there isn't an exact match, try a case-insensitive match
for key in env:
if var.casefold() == key.casefold():
return_value = env[key]
break
elif default is not None:
return_value = default

Expand Down