Skip to content

Commit a9eb257

Browse files
Apply ruff/tryceratops rule TRY300
TRY300 Consider moving this statement to an `else` block
1 parent 210b969 commit a9eb257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme_renderer/clean.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def clean(
8383
link_rel="nofollow",
8484
url_schemes={"http", "https", "mailto"},
8585
)
86-
87-
return cleaned
8886
except ValueError:
8987
return None
88+
else:
89+
return cleaned

0 commit comments

Comments
 (0)