Skip to content

Commit

Permalink
This is redundant with the check in collection_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Dec 12, 2024
1 parent c64c131 commit 4e18e92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/molecule/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4e18e92

Please sign in to comment.