Skip to content

Commit 725d2b5

Browse files
committed
Simplify test_color_functions_5
1 parent c3f7a92 commit 725d2b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_tinycss2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ def test_color_functions_5(input):
205205
result.append(_build_color(parse_color5(input, ('light',))))
206206
result.append(_build_color(parse_color5(input, ('dark',))))
207207
else:
208-
if not (color := parse_color5(input)):
209-
return None
210-
result = _build_color(color)
208+
result = _build_color(parse_color5(input))
211209
return result
212210

213211

0 commit comments

Comments
 (0)