Skip to content

Commit

Permalink
impossible branch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Teriks committed Jan 4, 2025
1 parent baa0333 commit 4cbd736
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dgenerate/textprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@ def shell_expandvars(string: str) -> str:
"""

def replace_var(match):
if match.group(0).startswith('\\'):
return match.group(0)[1:]
var = match.group('unix') or match.group('braced') or match.group('windows')
return os.environ.get(var, '')

Expand Down

0 comments on commit 4cbd736

Please sign in to comment.