diff --git a/redash/destinations/__init__.py b/redash/destinations/__init__.py index 4a24e99103..f59213d7b7 100644 --- a/redash/destinations/__init__.py +++ b/redash/destinations/__init__.py @@ -49,7 +49,6 @@ def to_dict(cls): def register(destination_class): - global destinations if destination_class.enabled(): logger.debug( "Registering %s (%s) destinations.", diff --git a/redash/query_runner/__init__.py b/redash/query_runner/__init__.py index 10d6d6edf5..8f6f9deca5 100644 --- a/redash/query_runner/__init__.py +++ b/redash/query_runner/__init__.py @@ -409,7 +409,6 @@ def get_response(self, url, auth=None, http_method="get", **kwargs): def register(query_runner_class): - global query_runners if query_runner_class.enabled(): logger.debug( "Registering %s (%s) query runner.",