We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d5588b commit cc4e26cCopy full SHA for cc4e26c
1 file changed
links/short.py
@@ -41,10 +41,9 @@ def shorten(n: int) -> str:
41
Get Nth short URL made from SDIGITS, where 0 is the first.
42
"""
43
iter_short = gen_short()
44
- for i in range(n+1):
+ for _ in range(n+1):
45
short = next(iter_short)
46
- if i == n:
47
- return short
+ return short
48
49
50
def gen_free_short(redirects: dict) -> Iterator[str]:
0 commit comments