Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc4e26c

Browse files
authored
Remove redundant if from short.py
1 parent3d5588b commitcc4e26c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎links/short.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ def shorten(n: int) -> str:
4141
Get Nth short URL made from SDIGITS, where 0 is the first.
4242
"""
4343
iter_short=gen_short()
44-
foriinrange(n+1):
44+
for_inrange(n+1):
4545
short=next(iter_short)
46-
ifi==n:
47-
returnshort
46+
returnshort
4847

4948

5049
defgen_free_short(redirects:dict)->Iterator[str]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp