Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak committed Feb 9, 2022
1 parent b035155 commit 65dd4f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/rest/media/v1/preview_url_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,6 @@ def _is_json(content_type: str) -> bool:
def _is_not_av_media(content_type: bytes) -> bool:
"""Returns False if the content type is audio or video."""
content_type = content_type.lower()
return not content_type.startswith(
b"video/"
) and not content_type.startswith(b"audio/")
return not content_type.startswith(b"video/") and not content_type.startswith(
b"audio/"
)

0 comments on commit 65dd4f1

Please sign in to comment.