Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 25, 2023
1 parent d23b23c commit 5994c63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/parameter_expansion/pe.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def expand(s, env=None, strict=False):
break

for plain in plain_exps:

expanded = "".join(expand_tokens(plain, env=env, strict=strict))
logger_debug("expand: plain:", plain, "expanded:", expanded)
s = s.replace(plain, expanded)
Expand Down Expand Up @@ -310,7 +309,6 @@ def follow_brace(shl, env, strict=False):
return next(shl)
return subst # ""
elif modifier.isdigit() or modifier == ":":

# This is a Substring Expansion as in ${foo:4:2}, ${foo::2},
# ${foo:4:} or ${foo:4:2} in the generale form of
# ${parameter:start:length}. No start means start=0. No length
Expand Down

0 comments on commit 5994c63

Please sign in to comment.