Skip to content

Commit

Permalink
HTML search: cleanup: remove redundant assert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Nov 16, 2024
1 parent 2bcf7a6 commit 381c26f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sphinx/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ class _JavaScriptIndex:
SUFFIX = ')'

def dumps(self, data: Any) -> str:
assert all(k.isidentifier() for k in data)
json_dump = lambda data: json.dumps(data, separators=(',', ':'))
js_indices = {
json_dump(name): f'new Map({json_dump(sorted(entries.items()))})'
Expand Down

0 comments on commit 381c26f

Please sign in to comment.