From 90139182827ac1866edf99a1ed4e42763655fc6d Mon Sep 17 00:00:00 2001 From: Marcin Stolarek Date: Fri, 13 Oct 2023 09:35:53 +0200 Subject: [PATCH] Adjust to pylint E0601 --- source/modules/validators/validate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/modules/validators/validate.py b/source/modules/validators/validate.py index 075929e4..fe16d52c 100644 --- a/source/modules/validators/validate.py +++ b/source/modules/validators/validate.py @@ -142,13 +142,12 @@ def validate_self_setup(self, options: dict, config: dict): infra["name"]) sys.exit(59) else: - ret = options["self_setup"] + return options["self_setup"] else: self.logger.critical("Provided --self-setup path %s does not exist!", options["self_setup"]) sys.exit(59) - - return ret + return None def validate_commit(self, options: dict, config: dict): """Function to validate commit value against config and assign final value"""