Skip to content

Commit 8145333

Browse files
committed
refactor: replace if/elif with match/case
1 parent abeb97b commit 8145333

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kitsune/sumo/templatetags/jinja_helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ def datetimeformat(context, value, format="shortdatetime", use_naturaltime=False
309309
formatted = format_datetime(
310310
convert_value, format="yyyy", tzinfo=convert_tzinfo, locale=locale
311311
)
312-
313312
case _:
314313
# Unknown format
315314
raise DateTimeFormatError

0 commit comments

Comments
 (0)