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

Commit

Permalink
data_dir_path is always provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Apr 7, 2022
1 parent 96146f5 commit af3f83b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions synapse/config/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
"url_preview_accept_language"
) or ["en"]

def generate_config_section(
self, data_dir_path: Optional[str], **kwargs: Any
) -> str:
def generate_config_section(self, data_dir_path: str, **kwargs: Any) -> str:
assert data_dir_path is not None
media_store = os.path.join(data_dir_path, "media_store")

Expand Down

0 comments on commit af3f83b

Please sign in to comment.