From b0ed867fcc97497d59df32122d7f99bfc146e00b Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 10 Dec 2024 03:49:26 +0800 Subject: [PATCH] refactor(ext_storage): remove initial of storage_runner to avoid None value checking Signed-off-by: -LAN- --- api/extensions/ext_storage.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/extensions/ext_storage.py b/api/extensions/ext_storage.py index 13b7af96563e46..dae52b265fdc34 100644 --- a/api/extensions/ext_storage.py +++ b/api/extensions/ext_storage.py @@ -11,9 +11,6 @@ class Storage: - def __init__(self): - self.storage_runner = None - def init_app(self, app: Flask): storage_factory = self.get_storage_factory(dify_config.STORAGE_TYPE) with app.app_context():