From ccf092b9dac4f93c1b447ebe942dc20592621916 Mon Sep 17 00:00:00 2001 From: Kate Case Date: Mon, 9 Dec 2024 16:10:23 -0500 Subject: [PATCH] This is redundant with the check in collection_directory --- src/molecule/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/molecule/config.py b/src/molecule/config.py index 54425c42a4..d13cec64bb 100644 --- a/src/molecule/config.py +++ b/src/molecule/config.py @@ -264,10 +264,8 @@ def collection(self) -> CollectionData | None: return None galaxy_file = self.collection_directory / "galaxy.yml" - if galaxy_file.exists(): - galaxy_data = util.safe_load_file(galaxy_file) - return cast(CollectionData, galaxy_data) - return None + galaxy_data = util.safe_load_file(galaxy_file) + return cast(CollectionData, galaxy_data) @cached_property def dependency(self) -> Dependency | None: