Skip to content

Commit f1244df

Browse files
committed
refactor(04_jump_the_five): remove unnecessary conditional
1 parent 4b4df46 commit f1244df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎04_jump_the_five/jump.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_args(args: list[Any] | None = None) -> argparse.Namespace:
4949

5050

5151
def get_encoded(string: str, jumper: dict[str, Any] = JUMPER[0]) -> str:
52-
return "".join(jumper.get(c, "") if c.isnumeric() else c for c in string)
52+
return "".join(jumper.get(c, c) for c in string)
5353

5454

5555
def main():

0 commit comments

Comments
 (0)