Remove redundant if from short.py

This commit is contained in:
Luciano Ramalho authored and GitHub committed 2025-05-22 02:18:34 -03:00
1 parent 3d5588b75e
commit cc4e26c67a
1 file changed
+1 -2
+1 -2
View File
@@ -41,9 +41,8 @@ def shorten(n: int) -> str:
Get Nth short URL made from SDIGITS, where 0 is the first. Get Nth short URL made from SDIGITS, where 0 is the first.
""" """
iter_short = gen_short() iter_short = gen_short()
for i in range(n+1): for _ in range(n+1):
short = next(iter_short) short = next(iter_short)
if i == n:
return short return short