Skip to content

Commit 64f7667

Browse files
committed
linting
1 parent e4d6a10 commit 64f7667

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

synapse/config/matrixrtc.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,13 @@ class MatrixRtcConfig(Config):
3232
def read_config(
3333
self, config: JsonDict, allow_secrets_in_config: bool, **kwargs: Any
3434
) -> None:
35-
3635
matrix_rtc: JsonDict = config.get("matrix_rtc", {})
3736
self.services = matrix_rtc.get("services", [])
3837

3938
if not isinstance(self.services, list):
4039
raise ConfigError(
41-
"MatrixRTC endpoints needs to be an array of endpoints",
42-
("matrix_rtc",)
40+
"MatrixRTC endpoints needs to be an array of endpoints", ("matrix_rtc",)
4341
)
4442

4543
if any(("type" not in e for e in self.services)):
46-
raise ConfigError(
47-
"MatrixRTC endpoint is missing type",
48-
("matrix_rtc",)
49-
)
44+
raise ConfigError("MatrixRTC endpoint is missing type", ("matrix_rtc",))

0 commit comments

Comments
 (0)