summary refs log tree commit diff
path: root/synapse/config/appservice.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-12-14 12:02:46 -0500
committerGitHub <noreply@github.com>2021-12-14 17:02:46 +0000
commit2519beaad25d2c824129c26eab10962773e643a6 (patch)
treee4a1eb70f5d960c7edf2486a03b27bc958edde55 /synapse/config/appservice.py
parentMerge branch 'master' into develop (diff)
downloadsynapse-2519beaad25d2c824129c26eab10962773e643a6.tar.xz
Add missing type hints to `synapse.appservice` (#11360)
Diffstat (limited to 'synapse/config/appservice.py')
-rw-r--r--synapse/config/appservice.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/config/appservice.py b/synapse/config/appservice.py
index e4bb7224a4..7fad2e0422 100644
--- a/synapse/config/appservice.py
+++ b/synapse/config/appservice.py
@@ -147,8 +147,7 @@ def _load_appservice(
     # protocols check
     protocols = as_info.get("protocols")
     if protocols:
-        # Because strings are lists in python
-        if isinstance(protocols, str) or not isinstance(protocols, list):
+        if not isinstance(protocols, list):
             raise KeyError("Optional 'protocols' must be a list if present.")
         for p in protocols:
             if not isinstance(p, str):