Skip to content

Commit 1f55111

Browse files
committed
Use bool() for conciseness
1 parent 9877c0c commit 1f55111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdown_it/common/normalize_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def validateLink(url: str, validator: Callable = None):
181181
return validator(url)
182182
url = url.strip().lower()
183183
return (
184-
(True if GOOD_DATA_RE.search(url) else False)
184+
bool(GOOD_DATA_RE.search(url))
185185
if BAD_PROTO_RE.search(url)
186186
else True
187187
)

0 commit comments

Comments
 (0)