From db0233691c4bce538737aa05a88664b2940cd327 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Fri, 17 Jun 2022 14:26:22 +0100 Subject: [PATCH] lint: add back "useless" return to tf_prehook --- app/terraform/proxy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/terraform/proxy/__init__.py b/app/terraform/proxy/__init__.py index 123fd83..32875a6 100644 --- a/app/terraform/proxy/__init__.py +++ b/app/terraform/proxy/__init__.py @@ -134,10 +134,11 @@ class ProxyAutomation(TerraformAutomation): def import_state(self, state: Any) -> None: raise NotImplementedError() - def tf_prehook(self) -> Optional[Any]: + def tf_prehook(self) -> Optional[Any]: # pylint: disable=useless-return self.create_missing_proxies() self.deprecate_orphaned_proxies() self.destroy_expired_proxies() + return None def tf_posthook(self, *, prehook_result: Any = None) -> None: self.import_state(self.tf_show())